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 <aborodin@vmail.ru>
This commit is contained in:
Oleksandr Natalenko 2013-09-11 15:39:51 +03:00 committed by Andrew Borodin
parent 931efb4d34
commit c4a546ac01

View File

@ -49,7 +49,10 @@ flag==1 {
else else
if (index($1, ".") != 0) if (index($1, ".") != 0)
$1="-rw-r--r--" $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
}' }'
} }