]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/busybox-0.60.5-wget-unlink.patch
git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848...
[people/pmueller/ipfire-2.x.git] / src / patches / busybox-0.60.5-wget-unlink.patch
1 --- wget.c.old 2004-04-07 09:23:21.000000000 +0100
2 +++ wget.c 2004-04-07 09:23:33.000000000 +0100
3 @@ -74,7 +74,9 @@
4 {
5 if (output != stdout && do_continue==0) {
6 fclose(output);
7 - unlink(fname_out);
8 + /* if it's /dev/null, don't unlink it */
9 + if (strcmp(fname_out, "/dev/null"))
10 + unlink(fname_out);
11 }
12 }
13