From 752a7e44542fc1fcbde3e2c21ecf74c3c4890e74 Mon Sep 17 00:00:00 2001 From: Andrey Tataranovich Date: Sat, 10 Dec 2016 18:17:30 +0300 Subject: [PATCH] Ticket #3693: fix listing of zoo archive entries. Signed-off-by: Andrew Borodin --- src/vfs/extfs/helpers/uzoo.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/vfs/extfs/helpers/uzoo.in b/src/vfs/extfs/helpers/uzoo.in index d85666977..c90be750a 100644 --- a/src/vfs/extfs/helpers/uzoo.in +++ b/src/vfs/extfs/helpers/uzoo.in @@ -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 }