[comp.sys.amiga.tech] Zoo unpacking wrong times

ske@pkmab.se (Kristoffer Eriksson) (01/18/89)

Now having entered this new year 1989, I have encountered something
that I think may be a bug in the Zoo archiver. When I unpack Zoo-archives
containing files dated 1989, the unpacked files get times that are 1
day before the times of the original files. The times shown by "zoo v",
though, are correct. This applies to any date in 1989, and indeed to
every year that follows a leap-year (1993, 1997...), according to the
testing I have done.

I discovered this when I unpacked the recently posted VirusX 3.1,
being a little bit extra precautius. I'm using Amigazoo 2.00 on an
A2000, but zoo 1.42 behaved exactly the same when I tested it on a
single file.

On my UNIX-system I have Zoo 2.01, wich also seems to get the times
on unpacked files wrong, but I have not found any consistent pattern
as to by how much.

Have I overlooked something, or is this a genuine bug? Can it be fixed?

Another thing I stumbled on at the same time, is that LIST displayes
certain dates wrong. 31-dec-88 becomes 04--88, 30-dec-88 => 03--88,
29-dec-88 => 02--88 and 28-dec-88 => 01--88. From there on, correct
dates are displayed. This too appears to be connected to the leapyers.
1987 and 1989 display correctly, but 1992 becomes like 1988. I use
"ls" instead.
-- 
Kristoffer Eriksson, Peridot Konsult AB, Hagagatan 6, S-703 40 Oerebro, Sweden
Phone: +46 19-13 03 60   !  e-mail: ske@pkmab.se
Fax:   +46 19-11 51 03   !  or      ...{uunet,mcvax}!enea!kullmar!pkmab!ske

jbwaters@bsu-cs.UUCP (J. Brian Waters) (01/21/89)

In article <572@pkmab.se>, ske@pkmab.se (Kristoffer Eriksson) writes:
> that I think may be a bug in the Zoo archiver. When I unpack Zoo-archives
> containing files dated 1989, the unpacked files get times that are 1
> day before the times of the original files. The times shown by "zoo v",

This has been fixed in AmigaZoo 2.01... for those of you that do not want
to wait for its release here is a patch to fix this problem in AmigaZoo 2.00.
Instructions are contained in the archive comment of the ZOO file.

begin 600 zpatch.zoo
M6D]/(#(N,#`@07)C:&EV92X:``#<I\3]W@```"+___\"``$J````M``!5&AI
M<R!R;W5T:6YE(&9I>&5S(&$@<')O8FQE;2!W:71H('1H92!F:6QE(')E<W1O
M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X8.U52AXERA^>XAWWH.X`8/*0"!\1C/(@(3$D';P#@`C.!;UL(#G(R
M=#00`,0`#"8`&T-@#,"`!$,@!$-`#8.`!$``#,&@F$(`!-`@"*-B8B%!9`3`
M`K+!#4[@#O_`#9:)F8&@F9PI")^9F9OY#[@`FJ+Y#\J@FJ?)!Z49FJ>)`C\F
M1Y+CFIS)"K5)?)=IFIPI#KCY#\10FY'3F[+)F=9`G+?IF__@"QAQ$[&YFJ:@
MG,:YFM`@)P%``#]&3UX!FM@`D_]`":-"3Y5I(L;YG>[@#V)0FPEQGJ>I`R^V
MG#&TF?Z@#=[YFO')%*Z"`/?)F2Z`8NZ9GHS@G?FY8^'B#OV`#?G9G_Y@".PI
MG^CI#\X`H`P*3`/!#A*1H6LSB@HQ`/*`$(4F$'&@$"1Z>QI:HB4:`&UDHBA*
MH@'`$,W3HC(ZHS1:HS9ZHSB:HSJZHSS:HS[ZHT`:I$(ZI$3:HA1`HQZ*$.N@
MH1X:$`#<I\3]`@``````````````````````````````````````````````
0``````````````````#\@P``
`
end
-- 
Brian Waters              <backbone>!{iuvax|pur-ee}!bsu-cs!jbwaters
                                          uunet!---/

rodger@hpdml93.HP.COM (Rodger Anderson) (01/27/89)

>/ hpdml93:comp.sys.amiga.tech / grwalter@watmath.waterloo.edu (Fred Walter) /  2:01 pm  Jan 24, 1989 /

>Um... I'm running the release version of 1.3 and I have my stack set to
>30000, and I occasionly get zoo seemingly just looping while trying to read
                                                ^^^^^^^
>a zoo archive. It doesn't crash (I can break it), but it is annoying to
>have to the zoo archive to ram: to look at it.

Were you trying to extract the archive or do a listing of it?  I have
found that if a zoo archive is in a directory with lots of files, and
you do v on it (zoo v file.zoo), it can take quite a long to time before
it lists the contents.  If I move the archive into its own directory,
the problem goes away.  I think zoo is doing a scan of the directory for
each file in the archive.  Doing an extract works fine.

>	fred
>----------
-- 
Rodger Anderson (rodger@hpdml93)
              or(rodger%hpdml93@hplabs.hp.com)

grwalter@watmath.waterloo.edu (Fred Walter) (01/29/89)

In article <420002@hpdml93.HP.COM> rodger@hpdml93.HP.COM (Rodger Anderson) writes:
>>/ hpdml93:comp.sys.amiga.tech / grwalter@watmath.waterloo.edu (Fred Walter) /  2:01 pm  Jan 24, 1989 /
>
>>Um... I'm running the release version of 1.3 and I have my stack set to
>>30000, and I occasionly get zoo seemingly just looping while trying to read
>>a zoo archive. It doesn't crash (I can break it), but it is annoying to
>>have to the zoo archive to ram: to look at it.
>
>Were you trying to extract the archive or do a listing of it?

I was doing a listing and yup, if I waited long enough the contents were
listed.