[PATCH] wget creates empty file
Ulf Samuelsson
ulf at atmel.com
Fri Sep 22 21:09:13 UTC 2006
----- Original Message -----
From: "Thaddeus Ternes" <tternes at gmail.com>
To: <busybox at busybox.net>
Sent: Friday, September 22, 2006 10:54 PM
Subject: [PATCH] wget creates empty file
> Currently, wget will create an empty file when it fails to make a
> connection to a valid host. Here's an example of the bug:
>
> /tmp # wget http://localhost:100/fake.html
> Connecting to localhost[127.0.0.1]:100
> wget: Unable to connect to remote host (127.0.0.1): Connection refused
> /tmp # ls -l fake.html
> -rw-r--r-- 1 root root 0 Sep 22 15:46 fake.html
>
> I've included a patch that should fix this. Any comments are welcomed.
>
> -Thaddeus
>
I think that a nice addition, would be to have a list of alternative hosts
in a ".wgetrc" file, which should be tried if the original hosts fails
to deliver the wanted file.
Best Regards
Ulf Samuelsson ulf at atmel.com
Atmel Nordic AB
Mail: Box 2033, 174 02 Sundbyberg, Sweden
Visit: Kavallerivägen 24, 174 58 Sundbyberg, Sweden
Phone +46 (8) 441 54 22 Fax +46 (8) 441 54 29
GSM +46 (706) 22 44 57
Technical support when I am not available:
AT89 C51 Applications Group: mailto:micro.hotline at nto.atmel.com
AT90 AVR Applications Group: mailto:avr at atmel.com
AT91 ARM Applications Group: mailto:at91support at atmel.com
FPSLIC Application Group: mailto:fpslic at atmel.com
Best AVR link: www.avrfreaks.net
More information about the busybox
mailing list