From 007a0cdbdd965c78449008cff72f7406acab31f6 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 10 Jan 2015 23:31:36 +0000 Subject: Bugfix: bad test in s6-ipcclient (for skalibs 2) --- src/conn-tools/s6-ipcclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3