diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2026-03-14 15:51:46 +0200 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2026-03-14 15:51:46 +0200 |
| commit | 16502a5ee39a76bee3edee5c05a7a9a70621b5ab (patch) | |
| tree | 5827426b1dad8e5fda40a42f4fa1240d092ec903 /dfm.c | |
| parent | 5082138a52564ea0bf2b72fe6bf1107a2bfcbd7c (diff) | |
dfm: don't propagate args for su that could contain spaces
Sorry su
Diffstat (limited to 'dfm.c')
| -rw-r--r-- | dfm.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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) { |