mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #3693: fix listing of zoo archive entries.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
f2051b2e99
commit
752a7e4454
@ -35,10 +35,14 @@ if ($6 > 50)
|
||||
else
|
||||
$6=$6 + 2000
|
||||
split($7, a, ":")
|
||||
split("Jan:Feb:Mar:Apr:May:Jun:Jul:Aug:Sep:Oct:Nov:Dec", month_list, ":")
|
||||
for (i=1; i<=12; i++) {
|
||||
month[month_list[i]] = i
|
||||
}
|
||||
if ($8 ~ /\/$/)
|
||||
printf "drwxr-xr-x 1 %-8d %-8d %8d %s %2d %4d %02d:%02d %s\n", uid, 0, $1, $5, $4, $6, a[1], a[2], $8
|
||||
printf "drwxr-xr-x 1 %-8d %-8d %8d %02d-%02d-%4d %02d:%02d %s\n", uid, 0, $1, month[$5], $4, $6, a[1], a[2], $8
|
||||
else
|
||||
printf "-rw-r--r-- 1 %-8d %-8d %8d %s %2d %4d %02d:%02d %s\n", uid, 0, $1, $5, $4, $6, a[1], a[2], $8
|
||||
printf "-rw-r--r-- 1 %-8d %-8d %8d %02d-%02d-%4d %02d:%02d %s\n", uid, 0, $1, month[$5], $4, $6, a[1], a[2], $8
|
||||
}' 2>/dev/null
|
||||
exit 0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user