diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-01-10 23:31:36 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-01-10 23:31:36 +0000 |
commit | 007a0cdbdd965c78449008cff72f7406acab31f6 (patch) | |
tree | dff28451628df0eb0ea22c5b146c0ca65db7bd07 /src/conn-tools/s6-ipcclient.c | |
parent | e9be34c9b798141dd6c224cf33934904935c49b2 (diff) | |
download | s6-networking-007a0cdbdd965c78449008cff72f7406acab31f6.tar.xz |
Bugfix: bad test in s6-ipcclient (for skalibs 2)
Diffstat (limited to 'src/conn-tools/s6-ipcclient.c')
-rw-r--r-- | src/conn-tools/s6-ipcclient.c | 2 |
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) |