aboutsummaryrefslogtreecommitdiff
path: root/wget.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-31 17:49:47 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-31 17:49:47 +0000
commit38ed6800211901aef842830c8f98a105d65c83a7 (patch)
treea90bab57b13080eb61e775bc72547ed72227370c /wget.c
parent3f6902d819c1574754ac1d2f548fd2b9b5435563 (diff)
downloadbusybox-w32-38ed6800211901aef842830c8f98a105d65c83a7.tar.gz
busybox-w32-38ed6800211901aef842830c8f98a105d65c83a7.tar.bz2
busybox-w32-38ed6800211901aef842830c8f98a105d65c83a7.zip
Patch from Vladimir N. Oleynik to simplify wget file opening
using xfopen (which is what everything should be using). git-svn-id: svn://busybox.net/trunk/busybox@1729 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r--wget.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/wget.c b/wget.c
index 438ecba2e..729c6fdc7 100644
--- a/wget.c
+++ b/wget.c
@@ -167,8 +167,7 @@ int wget_main(int argc, char **argv)
167 * Open the output file stream. 167 * Open the output file stream.
168 */ 168 */
169 if (fname_out != (char *)1) { 169 if (fname_out != (char *)1) {
170 if ( (output=fopen(fname_out, (do_continue ? "a" : "w"))) == NULL) 170 output = xfopen( fname_out, (do_continue ? "a" : "w") );
171 perror_msg_and_die("fopen(%s)", fname_out);
172 } else { 171 } else {
173 output = stdout; 172 output = stdout;
174 } 173 }
@@ -533,7 +532,7 @@ progressmeter(int flag)
533 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 532 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
534 * SUCH DAMAGE. 533 * SUCH DAMAGE.
535 * 534 *
536 * $Id: wget.c,v 1.23 2001/01/27 08:24:38 andersen Exp $ 535 * $Id: wget.c,v 1.24 2001/01/31 17:49:47 andersen Exp $
537 */ 536 */
538 537
539 538