mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-22 03:02:06 +03:00
fish: chgrp: trac:#336; do not add exceeding quotes (fixed by snizovtsev)
As we pass correctly(hopefully) escaped file names - all calls (except forgotten chgrp) were converted to accept unquoted strings. This patch fixes chgrp. Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
This commit is contained in:
parent
97496014aa
commit
027168ce3d
@ -975,8 +975,8 @@ fish_chown (struct vfs_class *me, const char *path, int owner, int group)
|
||||
fish_send_command (me, super, buf, OPT_FLUSH);
|
||||
/* FIXME: what should we report if chgrp succeeds but chown fails? */
|
||||
g_snprintf (buf, sizeof(buf),
|
||||
"#CHGRP /%s \"/%s\"\n"
|
||||
"chgrp %s \"/%s\" 2>/dev/null\n"
|
||||
"#CHGRP /%s /%s\n"
|
||||
"chgrp %s /%s 2>/dev/null\n"
|
||||
"echo '### 000'\n",
|
||||
sgroup, rpath,
|
||||
sgroup, rpath);
|
||||
|
Loading…
Reference in New Issue
Block a user