Bug 124867
Summary: | wget --exclude-directories option is ignored. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Chris Winne <bugs> |
Component: | wget | Assignee: | Karsten Hopp <karsten> |
Status: | CLOSED NEXTRELEASE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 2 | CC: | fedora, mattdm |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-09-08 15:00:40 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Chris Winne
2004-05-31 16:57:31 UTC
*** Bug 145362 has been marked as a duplicate of this bug. *** I'm experiencing this bug also in FC3 ! This bug is ancient, is there a reason to not fix it ? It appears to be a bug in wget 1.9, not specific to Fedora. The problem is that leading "*" wildcards do not match across "/" (directories). Take a look at the fnmatch() function in cmpt.c to see why this is so. I haven't looked at the history to see when this changed, but it sounds like it works differently in 1.8.2. # For example, this does not work (the SRPMS directory is downloaded): wget -nH --cut-dirs=3 --progress=dot --mirror \ -X SRPMS \ ftp://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/os/i386/ # Trying the same thing with a wildcard does not work (this one also downloads SRPMS): wget -nH --cut-dirs=3 --progress=dot --mirror \ -X \*/SRPMS \ ftp://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/os/i386/ # However, specifying the full path in the exclude does work (this downloads nothing): wget -nH --cut-dirs=3 --progress=dot --mirror \ -X /pub/redhat/linux/enterprise/4/en/os/i386/SRPMS \ ftp://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/os/i386/ Fedora Core 2 is now maintained by the Fedora Legacy project for security updates only. If this problem is a security issue, please reopen and reassign to the Fedora Legacy product. If it is not a security issue and hasn't been resolved in the current FC3 updates or in the FC4 test release, reopen and change the version to match. |