zsync doesn't prevent timestamp of downloaded file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zsync (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: zsync
Ubuntu 9.10 i386, zsync 0.6
ISSUE:
When file is downloaded with zsync, timestamp is set to the time when download was finished, timestamp at HTTP server is ignored. I can compare with WGET that keeps timestamp as reported by HTTP server.
EXAMPLE:
FILE http://
lucid-alternate
lucid-alternate
$ zsync -V
zsync v0.6 (compiled Nov 8 2009 23:19:49)
By Colin Phipps <email address hidden>
Published under the Artistic License v2, see the COPYING file for details.
1) File downloaded with ZSYNC:
$ zsync http://
...
$ ls -l lucid-alternate
-rw------- 1 psl psl 673048576 2010-03-14 13:33 lucid-alternate
2) File downloaded with WGET:
$ wget http://
...
$ ls -l lucid-alternate
-rw-r--r-- 1 psl psl 673048576 2010-03-14 08:36 lucid-alternate
SUMARY:
ZSYNC set timestamp to 2010-03-14 13:33 (CET); download was finished at this time...
WGET set timestamp to 2010-03-14 08:36 (CET); download finished later than ZSYNC but timestamp is correct...
HTTP server reports 2010-03-14 07:36 (GMT)
I noticed that ZSYNC file (lucid-
ZSYNC header, no timestamp information is there:
zsync: 0.5
Filename: lucid-alternate
Blocksize: 4096
Length: 673048576
Hash-Lengths: 2,3,5
URL: lucid-alternate
SHA-1: 9fd2e7fa32bdfcf
I noticed that this report could be extended from timestamps to file rights, to umask.
$ umask
0022
WGET set file rights to 0644:
$ umask; ls -l lucid-alternate -i386.iso -i386.iso
0022
-rw-r--r-- 1 psl psl 673048576 2010-03-14 08:36 lucid-alternate
ZSYNC set file rights to 0600:
$ umask; ls -l lucid-alternate -i386.iso -i386.iso
0022
-rw------- 1 psl psl 673048576 2010-03-14 13:33 lucid-alternate