mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +03:00
Merge branch 'mc-4.6'
* mc-4.6: fish: chgrp: trac:#336; do not add exceeding quotes (fixed by snizovtsev)
This commit is contained in:
commit
3da14e7f8f
@ -993,8 +993,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