Ticket #3729: 3729-0001-extfs-uace-fix-date-format.patch

File 3729-0001-extfs-uace-fix-date-format.patch, 1.3 KB (added by mooffie, 8 years ago)
  • src/vfs/extfs/helpers/uace.in

    From 325188286b32c084da98e13f07e624fd6555abf7 Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Wed, 14 Dec 2016 01:03:18 +0200
    Subject: [PATCH 01/13] Ticket #3729: extfs: uace: fix date format.
    
    Use "MM-DD-YYYY hh:mm" instead of "Mon DD YYYY hh:mm".
    ---
     src/vfs/extfs/helpers/uace.in | 5 ++---
     1 file changed, 2 insertions(+), 3 deletions(-)
    
    diff --git a/src/vfs/extfs/helpers/uace.in b/src/vfs/extfs/helpers/uace.in
    index b383d41..90e3f4b 100644
    a b ACE_GET="unace x" 
    1616 
    1717# The 'list' command executive 
    1818 
    19 # Unace:        DD.MM.YY HH.MM packed size ratio file  
     19# Unace:        DD.MM.YY HH:MM packed size ratio file 
    2020# ls: 
    2121mc_ace_fs_list() 
    2222{ 
    mc_ace_fs_list() 
    2727        fi 
    2828    fi 
    2929    $ACE_LIST "$1" | @AWK@ -v uid=$UID ' 
    30 BEGIN { Month="JanFebMarAprMayJunJulAugSepOctNovDec" } 
    3130/%/ {  
    3231  split($1,date,".") 
    3332 
    BEGIN { Month="JanFebMarAprMayJunJulAugSepOctNovDec" } 
    3635  else 
    3736    date[3]=date[3] + 2000 
    3837 
    39   printf "-rw-r--r--   1 %-8d %-8d %8d %s %2d %4d %s %s\n", uid, 0, $3, substr(Month,3*(date[2]-1)+1,3),date[1],date[3], $2, $6 
     38  printf "-rw-r--r--   1 %-8d %-8d %8d %02d-%02d-%04d %s %s\n", uid, 0, $3, date[2], date[1], date[3], $2, $6 
    4039}' 2>/dev/null 
    4140    exit 0 
    4241}