]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/busybox-0.60.5-wget-unlink.patch
Wir kehren zurueck zu Kudzu, da hwinfo noch mehr Aerger macht.
[people/teissler/ipfire-2.x.git] / src / patches / busybox-0.60.5-wget-unlink.patch
CommitLineData
cd1a2927
MT
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