[PATCH] Re: deb-support-without-dpkg.patch was Re: AMC patches ported to mc-2006-02-03-13.tar.gz



Hi Pavel,

On Wed, 2006-03-08 at 17:50 +0200, Pavel Tsekov wrote:
> 2005 control.tar.gz

It appears ar is the app which uses 4 field dates that I was looking
for ;-s . Please try the following patch against vfs/extfs/uar. It
removes the fourth date field from the ls output.

Since it is impossible to distinguish between 3 and 4 field dates and
the implementation of a separate path for 3 and 4 field dates is not
trivial the approach should always be to strip down 4 field dates to 3
fields.

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research

--- uar.000	2006-03-08 01:01:38.000000000 +0100
+++ uar	2006-03-09 00:04:22.000000000 +0100
@@ -12,7 +12,8 @@ XAR=ar
 
 mcarfs_list ()
 {
-	$XAR tv "$1" | sed 's,^,-,;s, , 1 ,;s,/, ,'
+	thisyear="$(date +%Y)"	
+	$XAR tv "$1" | sed 's,^,-,;s, , 1 ,;s,/, ,' | sed -e "s/\(.\?\)\([0-2][0-9]\:[0-5][0-9] \)\(${thisyear} \)\(.*\)/\1\2\4/" | sed -e "s/\(.\?\)\([0-2][0-9]\:[0-5][0-9] \)\([0-2][0-9][0-9][0-9] \)\(.*\)/\1\3\4/"
 }
 
 mcarfs_copyout ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]