[Bug 4940] New: wget-supports--P fails due to simple bug in wget -P

bugzilla at busybox.net bugzilla at busybox.net
Sat Mar 17 19:23:08 UTC 2012


https://bugs.busybox.net/show_bug.cgi?id=4940

           Summary: wget-supports--P fails due to simple bug in wget -P
           Product: Busybox
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Networking
        AssignedTo: unassigned at busybox.net
        ReportedBy: basil+busybox at li95-58.members.linode.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


The test wget-supports--P fails on trunk (with SKIP_INTERNET_TESTS unset).

It runs "busybox wget -q -P foo http://www.google.com/", and expects
to get an index.html in directory "foo". busybox wget instead writes
index.html into the current directory.

Looking at networking/wget.c, it appears to be a simple bug. For example,
deleting the "else" immediately after the comment
"/* -P DIR is considered only if there was no -O FILE */"
makes the code behave correctly.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list