[Bug 13351] New: wget with a redirection truncates the file to 0 bytes when it receives an empty response from the server
bugzilla at busybox.net
bugzilla at busybox.net
Wed Dec 2 22:19:43 UTC 2020
https://bugs.busybox.net/show_bug.cgi?id=13351
Bug ID: 13351
Summary: wget with a redirection truncates the file to 0 bytes
when it receives an empty response from the server
Product: Busybox
Version: 1.32.x
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: hector at molinero.dev
CC: busybox-cvs at busybox.net
Target Milestone: ---
Created attachment 8691
--> https://bugs.busybox.net/attachment.cgi?id=8691&action=edit
Sample script that replicates the issue
When wget is invoked with a stdout redirection to a file and receives an empty
response from the server the destination file is truncated to 0 bytes. This is
caused by ftruncate being called with length 0.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list