diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-23 17:49:09 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-23 17:49:09 +0000 |
commit | a94554d010844e17ecf674fe738679f09cbc6c21 (patch) | |
tree | f84d358b4a6f174f8ee891203d9da39f0eea50b4 /libbb/xconnect.c | |
parent | 01a74f96492e9e9995b7fcb54013d00a840a3d5f (diff) | |
download | busybox-w32-a94554d010844e17ecf674fe738679f09cbc6c21.tar.gz busybox-w32-a94554d010844e17ecf674fe738679f09cbc6c21.tar.bz2 busybox-w32-a94554d010844e17ecf674fe738679f09cbc6c21.zip |
wget: fix bug where wget creates null file if there is no remote one.
add O_LARGEFILE support (not run tested :).
Diffstat (limited to 'libbb/xconnect.c')
-rw-r--r-- | libbb/xconnect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xconnect.c b/libbb/xconnect.c index ce1081d59..f88136a1a 100644 --- a/libbb/xconnect.c +++ b/libbb/xconnect.c | |||
@@ -55,7 +55,7 @@ int xconnect(struct sockaddr_in *s_addr) | |||
55 | if (connect(s, (struct sockaddr *)s_addr, sizeof(struct sockaddr_in)) < 0) | 55 | if (connect(s, (struct sockaddr *)s_addr, sizeof(struct sockaddr_in)) < 0) |
56 | { | 56 | { |
57 | if (ENABLE_FEATURE_CLEAN_UP) close(s); | 57 | if (ENABLE_FEATURE_CLEAN_UP) close(s); |
58 | bb_perror_msg_and_die("Unable to connect to remote host (%s)", | 58 | bb_perror_msg_and_die("unable to connect to remote host (%s)", |
59 | inet_ntoa(s_addr->sin_addr)); | 59 | inet_ntoa(s_addr->sin_addr)); |
60 | } | 60 | } |
61 | return s; | 61 | return s; |