bugGNU Wget - Bugs: bug #62964, --on-clobber does not respect...


bug #62964: --on-clobber does not respect sym-linked files

Submitter:  None
Submitted:  Sat 27 Aug 2022 02:07:23 AM UTC
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Paul Wratt Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  1.20
Operating System:  None 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

Sat 22 Oct 2022 07:25:53 PM UTC, comment #1: 

From the manual:

           When running Wget with -N, with or without -r or -p, the decision as to whether or not to download a newer copy of a file depends on the local and remote timestamp
           and size of the file.  -nc may not be specified at the same time as -N.

Thus, your point 3 is invalid.
However, I will agree that if you have a symlinked file, then Wget should not clobber it even with -r unless the file on the server has changed. In which case you need to use --timestamping to prevent that.

I will look into the symlink issue and see what I can find there.

Darshit Shah <darnir>
Group administrator
Sat 27 Aug 2022 02:07:23 AM UTC, original submission:  

if a file is present on the my system, but is a sym-linked file, the file will get over-written

I manually downloaded a iso image last night,, but I want the rest of that directory tree which contains small files less than 1Mb, so I wait for wget to build the tree structure and ^C it as soon as it hits that file (its the 1st one after 'index.html' - I delete that as well), rm the new partial download, and sym-link the iso file

Then I restart wget with the same command line, and zap there goes the file contents.

1) without --no-clobber it should always create .1/.2/etc names, it does not (https://savannah.gnu.org/bugs/?60244)

2) with --no-clobber it should never create .1/.2/etc names (https://savannah.gnu.org/bugs/?34413)

3) with --no-clobber it especially should not over-write anything, at all, ever



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

Attach Files:

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 darnir (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.13-758e.
    Corresponding source code