From 57be18b9ab08148a1cc9d5af588119885720be8b Mon Sep 17 00:00:00 2001 From: Mi Jinlong Date: Tue, 4 Jan 2011 11:16:45 -0500 Subject: libnsm.a: modify return value to false from 0 at nsm_drop_privileges() At nsm_drop_privileges(), for improving readability, unify the return value. Signed-off-by: Mi Jinlong Signed-off-by: Steve Dickson --- support/nsm/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/nsm/file.c b/support/nsm/file.c index e21c7d4..98b47bf 100644 --- a/support/nsm/file.c +++ b/support/nsm/file.c @@ -421,7 +421,7 @@ nsm_drop_privileges(const int pidfd) */ if (prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0) == -1) { xlog(L_ERROR, "prctl(PR_SET_KEEPCAPS) failed: %m"); - return 0; + return false; } if (setgroups(0, NULL) == -1) { -- cgit