[Bug 4610] New: wget -O removes files on http 404

bugzilla at busybox.net bugzilla at busybox.net
Wed Dec 14 17:03:58 UTC 2011


           Summary: wget -O removes files on http 404
           Product: Busybox
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Standard Compliance
        AssignedTo: unassigned at busybox.net
        ReportedBy: mikolaj at kucharski.name
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0

This is a report for busybox in RHEL 5.7 installer. As I think the issue is
more related to busybox than RHELs installer, I'm reporting it here.

Sorry I don't have access to newer version of busybox, to check does the issue
exist in newer versions.

If you look at below commands, you will see that my testing /dev/null2 file
gets removed. This issue doesn't' happen with full version of wget from gnu.org

-sh-3.2# wget --help
BusyBox v1.2.0 (2011.07.22-08:19+0000) multi-call binary

-sh-3.2# ls -l /dev/null2
ls: /dev/null2: No such file or directory

-sh-3.2# mknod -m 0666 /dev/null2 c 1 3
-sh-3.2# ls -l /dev/null2
crw-rw-rw-    1 root     0          1,   3 Dec 14 14:32 /dev/null2

-sh-3.2# wget -O /dev/null2 http://kck01dub/test
Connecting to kck01dub[]:80
wget: server returned error 404: HTTP/1.1 404 Not Found

-sh-3.2# ls -l /dev/null2
ls: /dev/null2: No such file or directory

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