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

Submitter:  None
Submitted:  Mon 28 Dec 2009 04:43:36 AM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  David Holman Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  trunk
Operating System:  Mac OS Reproducibility:  Every Time
Fixed Release:  None Planned Release:  None
Regression:  None Work Required:  None
Patch Included:  No
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code