[PATCH] [CTDB] CID 1435732: Argument cannot be negative
Swen Schillig
swen at vnet.ibm.com
Fri May 25 06:28:54 UTC 2018
Very small fix for CID 1435732.
Please review and push if happy.
Cheers Swen
-------------- next part --------------
From ad87474930108a091ef2112846ce37f9e2f08270 Mon Sep 17 00:00:00 2001
From: Swen Schillig <swen at vnet.ibm.com>
Date: Fri, 25 May 2018 08:23:17 +0200
Subject: [PATCH] [CTDB] CID 1435732: Argument cannot be negative
Negative parameter passed to function which cannot take negative values.
Signed-off-by: Swen Schillig <swen at vnet.ibm.com>
---
ctdb/server/ctdbd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ctdb/server/ctdbd.c b/ctdb/server/ctdbd.c
index 5290165a2a4..2fea4ffc5f0 100644
--- a/ctdb/server/ctdbd.c
+++ b/ctdb/server/ctdbd.c
@@ -321,7 +321,7 @@ int main(int argc, const char *argv[])
1);
if (ret != 0) {
D_ERR("Failed to set up event script debugging (%s)\n",
- strerror(ret));
+ strerror(errno));
goto fail;
}
}
--
2.14.3
More information about the samba-technical
mailing list