aboutsummaryrefslogtreecommitdiff
path: root/dfm.c
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2026-03-14 15:51:46 +0200
committerDylan Araps <dylan.araps@gmail.com>2026-03-14 15:51:46 +0200
commit16502a5ee39a76bee3edee5c05a7a9a70621b5ab (patch)
tree5827426b1dad8e5fda40a42f4fa1240d092ec903 /dfm.c
parent5082138a52564ea0bf2b72fe6bf1107a2bfcbd7c (diff)
dfm: don't propagate args for su that could contain spaces
Sorry su
Diffstat (limited to 'dfm.c')
-rw-r--r--dfm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/dfm.c b/dfm.c
index acd1fa8..57b7523 100644
--- a/dfm.c
+++ b/dfm.c
@@ -2884,11 +2884,7 @@ act_toggle_root(struct fm *p)
str_push_c(&p->ppwd, ' ');
str_push_c(&p->ppwd, p->f & FM_HIDDEN ? '+' : '-');
STR_PUSH(&p->ppwd, "H ");
- str_push(&p->ppwd, c.d, c.l);
- if (c.l) {
- STR_PUSH(&p->ppwd, " -c ");
- str_push(&p->ppwd, c.d, c.l);
- }
+ str_push_c(&p->ppwd, 0);
bool q = p->f & FM_SEARCH && p->vql;
usize qo = p->ppwd.l + 4;
if (q) {