projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge post-1.3.0 fixes
[oweals/busybox.git]
/
libbb
/
xconnect.c
diff --git
a/libbb/xconnect.c
b/libbb/xconnect.c
index b8564800703366d92330e2dddd00f0d97402ad27..bc0691531dbba55056e912ab768b3ecd0c20c8b9 100644
(file)
--- a/
libbb/xconnect.c
+++ b/
libbb/xconnect.c
@@
-54,7
+54,8
@@
void xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen)
if (connect(s, s_addr, addrlen) < 0) {
if (ENABLE_FEATURE_CLEAN_UP) close(s);
if (s_addr->sa_family == AF_INET)
if (connect(s, s_addr, addrlen) < 0) {
if (ENABLE_FEATURE_CLEAN_UP) close(s);
if (s_addr->sa_family == AF_INET)
- bb_perror_msg_and_die("cannot connect to remote host (%s)",
+ bb_perror_msg_and_die("%s (%s)",
+ "cannot connect to remote host",
inet_ntoa(((struct sockaddr_in *)s_addr)->sin_addr));
bb_perror_msg_and_die("cannot connect to remote host");
}
inet_ntoa(((struct sockaddr_in *)s_addr)->sin_addr));
bb_perror_msg_and_die("cannot connect to remote host");
}