summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-10 23:31:36 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-10 23:31:36 +0000
commit007a0cdbdd965c78449008cff72f7406acab31f6 (patch)
treedff28451628df0eb0ea22c5b146c0ca65db7bd07
parente9be34c9b798141dd6c224cf33934904935c49b2 (diff)
downloads6-networking-007a0cdbdd965c78449008cff72f7406acab31f6.tar.xz
Bugfix: bad test in s6-ipcclient (for skalibs 2)
-rw-r--r--src/conn-tools/s6-ipcclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn-tools/s6-ipcclient.c b/src/conn-tools/s6-ipcclient.c
index 3e3162c..c9aba1e 100644
--- a/src/conn-tools/s6-ipcclient.c
+++ b/src/conn-tools/s6-ipcclient.c
@@ -40,7 +40,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
if (s == -1) strerr_diefu1sys(111, "create socket") ;
if (bindpath && (ipc_bind(s, bindpath) == -1))
strerr_diefu2sys(111, "bind socket to ", bindpath) ;
- if (ipc_connect(s, argv[0]) < 0)
+ if (!ipc_connect(s, argv[0]))
strerr_diefu2sys(111, "connect to ", argv[0]) ;
if (verbosity >= 2) strerr_warn3x(PROG, ": connected to ", argv[0]) ;
if (localname)