diff --git a/lib/vfs/mc-vfs/extfs/urar.in b/lib/vfs/mc-vfs/extfs/urar.in index 6d29cd097..39f147b8e 100644 --- a/lib/vfs/mc-vfs/extfs/urar.in +++ b/lib/vfs/mc-vfs/extfs/urar.in @@ -31,20 +31,16 @@ mcrarfs_list () $UNRAR v -c- "$1" | @AWK@ -v uid=`id -u` -v gid=`id -g` ' BEGIN { flag=0 } /^-------/ { flag++; if (flag > 1) exit 0; next } -{ -if (flag == 0) next -if ( !/ [0-9][0-9]:[0-9][0-9] /) str = $0 # there is no time spec in this line -else { - if (str ~ /^\^/) - str=substr(str, 2) +flag==1 { + str = substr($0, 2) + getline split($4, a, "-") if (index($6, "D") != 0) $6="drwxr-xr-x" else if (index($6, ".") != 0) $6="-rw-r--r--" - printf "%s 1 %s %s %d %02d/%02d/%02d %s %s\n", $6, uid, gid, $1, a[2], a[1], a[3], $5, str -} + printf "%s 1 %s %s %d %02d/%02d/%02d %s ./%s\n", $6, uid, gid, $1, a[2], a[1], a[3], $5, str }' }