From 027168ce3d20a83c887af2fcec255a4489f7c3c8 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 2 May 2009 14:09:07 +0300 Subject: [PATCH] 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 --- vfs/fish.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vfs/fish.c b/vfs/fish.c index cb7e88950..2cf657109 100644 --- a/vfs/fish.c +++ b/vfs/fish.c @@ -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);