zoo creates archives with wrong date and time on the filesystem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zoo (Ubuntu) |
In Progress
|
Undecided
|
Unassigned |
Bug Description
After creating an archive with zoo, if you check its date and time with say dir -lha, you'll see that it's rather inconsistent. It seems very close to the date of the original file which is archived (so if you archive a very old file, or if you modify the date of the file you're going to archive, ls -lha will show that date or something close to it for the archive rather than the actual time).
The date of the file contained in the archive is correct, i.e. zoo -list will display the correct time and date.
I tested this with zoo 2.10-21 and 2.10-27 on Ubuntu 10.04.4 Lucid Lynx amd64 too and the result is the same.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: zoo 2.10-24
ProcVersionSign
Uname: Linux 3.2.0-29-
ApportVersion: 2.0.1-0ubuntu12
Architecture: i386
CasperVersion: 1.315
Date: Fri Dec 14 09:45:18 2012
LiveMediaBuild: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: zoo
UpgradeStatus: No upgrade log present (probably fresh install)
Looking a bit closer at that issue, it seems that only the last modification time is taken into account, the access time doesn't seem to matter. The following terminal log should be self-explanatory:
zapman@ ubuntu: ~/work/ bugs/zoo$ touch -d "2004-02-29 16:21:42" testfile ubuntu: ~/work/ bugs/zoo$ zoo -add test1.zoo testfile ubuntu: ~/work/ bugs/zoo$ dir -lha ubuntu: ~/work/ bugs/zoo$ touch -d "2005-02-22 16:28:42" testfile ubuntu: ~/work/ bugs/zoo$ zoo -add test2.zoo testfile ubuntu: ~/work/ bugs/zoo$ arj a -hk test2.arj testfile
zapman@
Zoo: testfile -- ( 0%) added
zapman@
total 12K
drwxr-xr-x 2 zapman zapman 4.0K 2012-12-14 14:04 .
drwxr-xr-x 4 zapman zapman 4.0K 2012-12-14 13:56 ..
-rw-r--r-- 1 zapman zapman 169 2004-02-29 16:21 test1.zoo
-rw-r--r-- 1 zapman zapman 0 2004-02-29 16:21 testfile
zapman@
zapman@
Zoo: testfile -- ( 0%) added
zapman@
ARJ32 v 3.10, Copyright (c) 1998-2004, ARJ Software Russia. [18 Dec 2009]
Creating archive : test2.arj ubuntu: ~/work/ bugs/zoo$ dir -lha ubuntu: ~/work/ bugs/zoo$ date ubuntu: ~/work/ bugs/zoo$ touch -d "2017-02-22 16:28:42" testfile ubuntu: ~/work/ bugs/zoo$ zoo -add test3.zoo testfile ubuntu: ~/work/ bugs/zoo$ dir -lha
Adding testfile 0.0%
Working...
1x .
ARJ-PROTECT data size 4096 bytes (3276.8%)
1 file(s)
AUTO ARJ-PROTECT enabled (1x)
zapman@
total 24K
drwxr-xr-x 2 zapman zapman 4.0K 2012-12-14 14:05 .
drwxr-xr-x 4 zapman zapman 4.0K 2012-12-14 13:56 ..
-rw-r--r-- 1 zapman zapman 169 2004-02-29 16:21 test1.zoo
-rw-r--r-- 1 zapman zapman 4.2K 2012-12-14 14:05 test2.arj
-rw-r--r-- 1 zapman zapman 169 2005-02-22 16:28 test2.zoo
-rw-r--r-- 1 zapman zapman 0 2005-02-22 16:28 testfile
zapman@
Fri Dec 14 14:06:21 CET 2012
zapman@
zapman@
Zoo: testfile -- ( 0%) added
zapman@
total 28K
drwxr-xr-x 2 zapman zapman 4.0K 2012-12-14 14:13 .
drwxr-xr-x 4 zapman zapman 4.0K 2012-12-14 13:56 ..
-rw-r--r-- 1 zapman zapman 169 2004-02-29 16:21 test1.zoo
-rw-r--r-- 1 zapman zapman 4.2K 2012-12-14 14:05 test2.arj
-rw-r--r-- 1 zapman zapman 169 2005-02-22 16:28 test2.zoo
-rw-r--r-- 1 zapman zapman 169 2017-02-22 16:28 test3.zoo
-rw-r--r-- 1 zapman zapman 0 2017-02-22 16:28 testfile