From c4a546ac01911e10bb79e92f3757cebd8ef6454f Mon Sep 17 00:00:00 2001 From: Oleksandr Natalenko Date: Wed, 11 Sep 2013 15:39:51 +0300 Subject: [PATCH] Ticket #3073: urar helper: fix handling filenames with spaces for unrar v5. Extfs urar helper doesn't allow to see the whole filename if it contains spaces and is unpacked by unrar v5. This commit should fix that. Signed-off-by: Andrew Borodin --- src/vfs/extfs/helpers/urar.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vfs/extfs/helpers/urar.in b/src/vfs/extfs/helpers/urar.in index 9c1b3c82d..45bbbb67b 100644 --- a/src/vfs/extfs/helpers/urar.in +++ b/src/vfs/extfs/helpers/urar.in @@ -49,7 +49,10 @@ flag==1 { else if (index($1, ".") != 0) $1="-rw-r--r--" - printf "%s 1 %s %s %d %02d/%02d/%02d %s ./%s\n", $1, uid, gid, $2, a[2], a[1], a[3], $6, $8 + printf "%s 1 %s %s %d %02d/%02d/%02d %s ./", $1, uid, gid, $2, a[2], a[1], a[3], $6 + for (i = 8; i < NF; ++i) + printf "%s ", $i + printf "%s\n", $NF }' }