diff --git a/vfs/fish.c b/vfs/fish.c index c16a7600a..c256cd158 100644 --- a/vfs/fish.c +++ b/vfs/fish.c @@ -456,7 +456,12 @@ fish_dir_load(struct vfs_class *me, struct vfs_s_inode *dir, char *remote_path) "ADD=1;\n" "fi\n" "ls $LSOPT /%s 2>/dev/null | grep '^[^cbt]' | (\n" - "while read p l u g s m d y n; do\n" + "while read p l u g s m d y n n2 n3; do\n" + "if test \"$m\" = \"0\" ; then \n" + "s=$d; m=$y; d=$n y=$n2; n=$n3\n" + "else\n" + "n=$n\" \"$n2\" \"n3\n" + "fi\n" "if [ $ADD = 0 ]; then\n" "echo \"P$p $u.$g\nS$s\nd$m $d $y\n:$n\n\"\n" "elif `sed --version >/dev/null 2>&1` ; then\n" @@ -468,7 +473,12 @@ fish_dir_load(struct vfs_class *me, struct vfs_s_inode *dir, char *remote_path) "fi\n" "done )\n" "ls $LSOPT /%s 2>/dev/null | grep '^[cb]' | (\n" - "while read p l u g a i m d y n; do\n" + "while read p l u g a i m d y n n2 n3; do\n" + "if test \"$a\" = \"0\" ; then \n" + "a=$m; i=$d; m=$y; d=$n y=$n2; n=$n3\n" + "else\n" + "n=$n\" \"$n2\" \"n3\n" + "fi\n" "if [ $ADD = 0 ]; then\n" "echo \"P$p $u.$g\nE$a$i\nd$m $d $y\n:$n\n\"\n" "elif `sed --version >/dev/null 2>&1` ; then\n"