[Bug 1691636] Re: Incorrect timestamps on unzipped files.
Dominik Viererbe
1691636 at bugs.launchpad.net
Thu Jun 1 09:36:49 UTC 2023
Thank you for reporting this bug in the first place! Thank you for
taking the time to report this bug in the first place and helping to
make Ubuntu better.
I still think this is not a bug. I will set this to Invalid for now, but
please write comment if you think otherwise.
** Changed in: unzip (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to unzip in Ubuntu.
https://bugs.launchpad.net/bugs/1691636
Title:
Incorrect timestamps on unzipped files.
Status in unzip package in Ubuntu:
Invalid
Bug description:
Description of problem:
Unzip will sometimes round up timestamps of unpacked files. This
results in a 1-second difference between the timestamp shown via
zipinfo -T, and the unzipped file on disk
Steps to Reproduce:
1. Zip files with different timestamps.
2. Note the timestamps stored in the archive with `zipinfo -T`
3. Unzip the archive
4. Compare the timestamps with `ls --full-time`
5. Note a difference of 1 second on some files.
Actual results:
Timestamps are off by a second on some files
Expected results:
Timestamps should match between zipinfo and ls.
Example -- note the timestamps on file "2"
$ touch 1
$ zip test.zip 1
adding: 1 (stored 0%)
$ touch 2
$ zip test.zip 2
adding: 2 (stored 0%)
$ touch 3
$ zip test.zip 3
adding: 3 (stored 0%)
$ ls --full-time
total 4
-rw-r--r-- 1 root root 0 2017-05-17 22:22:30.596313711 -0500 1
-rw-r--r-- 1 root root 0 2017-05-17 22:22:35.196210798 -0500 2
-rw-r--r-- 1 root root 0 2017-05-17 22:22:40.124112963 -0500 3
-rw-r--r-- 1 root root 412 2017-05-17 22:22:43.224057225 -0500 test.zip
$ rm -f 1 2 3
$ unzip test.zip
Archive: test.zip
extracting: 1
extracting: 2
extracting: 3
$ ls --full-time
total 4
-rw-r--r-- 1 root root 0 2017-05-17 22:22:30.000000000 -0500 1
-rw-r--r-- 1 root root 0 2017-05-17 22:22:36.000000000 -0500 2
-rw-r--r-- 1 root root 0 2017-05-17 22:22:40.000000000 -0500 3
-rw-r--r-- 1 root root 412 2017-05-17 22:22:43.224057225 -0500 test.zip
$ zipinfo -T test.zip
Archive: test.zip
Zip file size: 412 bytes, number of entries: 3
-rw-r--r-- 3.0 unx 0 bx stor 20170517.222230 1
-rw-r--r-- 3.0 unx 0 bx stor 20170517.222235 2
-rw-r--r-- 3.0 unx 0 bx stor 20170517.222240 3
3 files, 0 bytes uncompressed, 0 bytes compressed: 0.0%
$ lsb_release -rd
Description: Ubuntu 16.04.2 LTS
Release: 16.04
$ apt-cache policy zip unzip
zip:
Installed: 3.0-11
Candidate: 3.0-11
Version table:
*** 3.0-11 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
unzip:
Installed: 6.0-20ubuntu1
Candidate: 6.0-20ubuntu1
Version table:
*** 6.0-20ubuntu1 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
$ dpkg -s zip unzip
Package: zip
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 573
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Architecture: amd64
Multi-Arch: foreign
Version: 3.0-11
Depends: libbz2-1.0, libc6 (>= 2.14)
Recommends: unzip
Description: Archiver for .zip files
This is InfoZIP's zip program. It produces files that are fully
compatible with the popular PKZIP program; however, the command line
options are not identical. In other words, the end result is the same,
but the methods differ. :-)
.
This version supports encryption.
Original-Maintainer: Santiago Vila <sanvila at debian.org>
Homepage: http://www.info-zip.org/Zip.html
Package: unzip
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 518
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Architecture: amd64
Multi-Arch: foreign
Version: 6.0-20ubuntu1
Depends: libbz2-1.0, libc6 (>= 2.14)
Suggests: zip
Description: De-archiver for .zip files
InfoZIP's unzip program. With the exception of multi-volume archives
(ie, .ZIP files that are split across several disks using PKZIP's /& option),
this can handle any file produced either by PKZIP, or the corresponding
InfoZIP zip program.
.
This version supports encryption.
Homepage: http://www.info-zip.org/UnZip.html
Original-Maintainer: Santiago Vila <sanvila at debian.org>
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: unzip 6.0-20ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-62.83-generic 4.4.40
Uname: Linux 4.4.0-62-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Wed May 17 22:40:25 2017
Dependencies:
gcc-6-base 6.0.1-0ubuntu1
libbz2-1.0 1.0.6-8
libc6 2.23-0ubuntu7
libgcc1 1:6.0.1-0ubuntu1
InstallationDate: Installed on 2017-05-18 (0 days ago)
InstallationMedia: Ubuntu-Server 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.8)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: unzip
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unzip/+bug/1691636/+subscriptions
More information about the foundations-bugs
mailing list