Ticket #3696: mc_extfs_uzoo_datetime_format.patch

File mc_extfs_uzoo_datetime_format.patch, 896 bytes (added by IceMan, 5 years ago)

Patch for uzoo extfs helper

  • src/vfs/extfs/helpers/uzoo.in

    diff --git a/src/vfs/extfs/helpers/uzoo.in b/src/vfs/extfs/helpers/uzoo.in
    index d856669..c90be75 100644
    a b if ($6 > 50) 
    3535else 
    3636    $6=$6 + 2000 
    3737split($7, a, ":") 
     38split("Jan:Feb:Mar:Apr:May:Jun:Jul:Aug:Sep:Oct:Nov:Dec", month_list, ":") 
     39for (i=1; i<=12; i++) { 
     40    month[month_list[i]] = i 
     41} 
    3842if ($8 ~ /\/$/) 
    39     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 
     43    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 
    4044else 
    41     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 
     45    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 
    4246}' 2>/dev/null 
    4347    exit 0 
    4448}