Bug 4610

Summary: wget -O removes files on http 404
Product: Busybox Reporter: mikolaj
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED WORKSFORME    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description mikolaj 2011-12-14 17:03:58 UTC
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[10.101.40.22]: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
-sh-3.2#
Comment 1 Denys Vlasenko 2011-12-15 23:49:01 UTC
Please test a newer version. It's just four steps: wget + tar xf + make defconfig + make. Really, five minute job.

1.2.x is very old. I am pretty sure this bug is fixed in later versions.
Comment 2 mikolaj 2011-12-21 00:11:55 UTC
Just to be clear. I'm just reporting the bug, so you guys can check your newest code. I don't have resources to test this and I'm not planning to test latest version of busybox. Thanks.
Comment 3 gotrunks 2011-12-21 02:05:26 UTC
Can't reproduce on v1.18.

But behavior is slightly different, gnu wget truncates output file.