From d54ea1e079d324f9f9812a6703da7a97b529c426 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 16 Jul 2009 09:40:34 +0300 Subject: [PATCH] Ticket #1413 (overly quoted escaped pathnames) > "ls -l \"/%s\" >/dev/null 2>/dev/null\n" and longstanding one > "ls $LSOPT \"/%s\" 2>/dev/null | grep '[cbt]' | (\n" Fixing again. Signed-off-by: Sergei Trofimovich --- vfs/fish.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vfs/fish.c b/vfs/fish.c index ad066eead..1e1ccbecb 100644 --- a/vfs/fish.c +++ b/vfs/fish.c @@ -453,7 +453,7 @@ fish_dir_load(struct vfs_class *me, struct vfs_s_inode *dir, char *remote_path) "LSOPT=\"-lan\";\n" "ADD=1;\n" "fi\n" - "ls $LSOPT \"/%s\" 2>/dev/null | grep '^[^cbt]' | (\n" + "ls $LSOPT /%s 2>/dev/null | grep '^[^cbt]' | (\n" "while read p l u g s m d y n; do\n" "if [ $ADD = 0 ]; then\n" "echo \"P$p $u.$g\nS$s\nd$m $d $y\n:$n\n\"\n" @@ -1052,8 +1052,8 @@ static int fish_exists (struct vfs_class *me, const char *path) PREFIX g_snprintf(buf, sizeof(buf), - "#ISEXISTS \"/%s\"\n" - "ls -l \"/%s\" >/dev/null 2>/dev/null\n" + "#ISEXISTS /%s\n" + "ls -l /%s >/dev/null 2>/dev/null\n" "echo '### '$?\n", rpath, rpath); -- 2.11.4.GIT