bugGNU Wget - Bugs: bug #28423, Time stamp of downloaded file does...

 
 

bug #28423: Time stamp of downloaded file does not match server when downloading a single file via ftp

Submitted by:  None
Submitted on:  Mon 28 Dec 2009 04:43:36 AM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: David HolmanOriginator Email: -unavailable-
Open/Closed: OpenRelease: trunk
Operating System: Mac OSReproducibility: Every Time
Fixed Release: NonePlanned Release: None
Regression: NoneWork Required: None
Patch Included: No

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 27 Aug 2010 04:44:16 AM UTC, comment #1:

It's documented behavior. From '5.3 FTP Time-Stamping Internals', "...when retrieving individual files from an FTP server without using globbing or recursion, listing files will not be downloaded (and thus files will not be time-stamped) unless `-N' is specified."

Nick Willson <n_i_c_k>
Mon 28 Dec 2009 04:43:36 AM UTC, original submission:

First, correct behavior:

david$ ./wget ftp://slackware.oregonstate.edu/pub/slackware/slackware-13.0-iso/slackware-13.0-install-d1.iso*
[lots of output]

david$ ls -al slackware-13.0-install-d1.iso.*
-rw-r--r-- 1 david staff 197 Aug 26 16:14 slackware-13.0-install-d1.iso.asc
-rw-r--r-- 1 david staff 64 Aug 26 16:17 slackware-13.0-install-d1.iso.md5
-rw-r--r-- 1 david staff 71478 Aug 26 16:04 slackware-13.0-install-d1.iso.txt

Timestamps match the server when globbing is used. Now a single file:

david$ ./wget ftp://slackware.oregonstate.edu/pub/slackware/slackware-13.0-iso/slackware-13.0-install-d1.iso.txt
--2009-12-27 20:42:07-- ftp://slackware.oregonstate.edu/pub/slackware/slackware-13.0-iso/slackware-13.0-install-d1.iso.txt
=> `slackware-13.0-install-d1.iso.txt'
Resolving slackware.oregonstate.edu... 64.50.236.52
Connecting to slackware.oregonstate.edu|64.50.236.52|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/slackware/slackware-13.0-iso ... done.
==> SIZE slackware-13.0-install-d1.iso.txt ... 71478
==> PASV ... done. ==> RETR slackware-13.0-install-d1.iso.txt ... done.
Length: 71478 (70K) (unauthoritative)

100%[=====================================================================================================================>] 71,478 123K/s in 0.6s

2009-12-27 20:42:09 (123 KB/s) - `slackware-13.0-install-d1.iso.txt' saved [71478]

david$ ls -al slackware-13.0-install-d1.iso.txt
-rw-r--r-- 1 david staff 71478 Dec 27 20:42 slackware-13.0-install-d1.iso.txt

This time the timestamp does not match (the file was deleted in between runs).

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by n_i_c_k (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1