bugGNU Wget - Bugs: bug #43324, file names don't show up correctly...

 
 

bug #43324: file names don't show up correctly in the log when using --backups

Submitter:  None
Submitted:  Mon 29 Sep 2014 04:03:46 PM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  5 - Normal Status:  Works For Me
Privacy:  Public Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  1.13.4
Operating System:  GNU/Linux Reproducibility:  Every Time
Fixed Release:  None Planned Release:  None
Regression:  None Work Required:  None
Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 20 Oct 2014 05:21:57 PM UTC, comment #3: 

As Bartosz writes, Wget 1.15 works as expected.
I am closing this bug now.

Tim Ruehsen <rockdaboot>
Group administrator
Sun 12 Oct 2014 04:19:54 PM UTC, comment #2: 

The log output seems correct.

The names of backup files are rotated by

void rotate_backups(const char *fname);

located in src/retr.c file.

In the example given below, file time-1.7.tar.gz is renamed to time-1.7.tar.gz.1 and the newly downloaded file is saved as time-1.7.tar.gz.

-X- <bszcz>
Tue 30 Sep 2014 10:39:05 AM UTC, comment #1: 

Strike --recursive, the problem appears independent of that flag.

Anonymous
Mon 29 Sep 2014 04:03:46 PM UTC, original submission:  

When fetching stuff recursively and with --backups=N, files are backed up correctly being suffixed by .1, .2, .3, etc. But the suffixes don't show up in the log output:


$ wget --no-verbose --backups=100 --recursive ftp://ftp.gnu.org/gnu/time/time-1.7.tar.gz
2014-09-29 17:57:37 URL: ftp://ftp.gnu.org/gnu/time/time-1.7.tar.gz [103066] -> "time-1.7.tar.gz" [1]

$ ls ftp.gnu.org/gnu/time/
time-1.7.tar.gz

$ wget --no-verbose --backups=100 --recursive ftp://ftp.gnu.org/gnu/time/time-1.7.tar.gz
2014-09-29 17:57:37 URL: ftp://ftp.gnu.org/gnu/time/time-1.7.tar.gz [103066] -> "time-1.7.tar.gz" [1]

$ ls ftp.gnu.org/gnu/time/
time-1.7.tar.gz  time-1.7.tar.gz.1


Expected behaviour:


$ wget --no-verbose --backups=100 ftp://ftp.gnu.org/gnu/time/time-1.7.tar.gz
2014-09-29 18:00:48 URL: ftp://ftp.gnu.org/gnu/time/time-1.7.tar.gz [103066] -> "time-1.7.tar.gz.2" [1]


(--no-verbose used for demonstration purposes, in the full output the suffix is missing as well)

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 rockdaboot (Posted a comment)
  • -email is unavailable- added by bszcz (Posted a comment)
  •  

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-20 rockdaboot StatusNone Works For Me
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code