From: Mi Jinlong Date: Tue, 4 Jan 2011 16:16:45 +0000 (-0500) Subject: libnsm.a: modify return value to false from 0 at nsm_drop_privileges() X-Git-Tag: nfs-utils-1-2-4-rc5~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=57be18b9ab08148a1cc9d5af588119885720be8b;p=nfs-utils.git 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 --- 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) {