summaryrefslogtreecommitdiffstats
path: root/support/nsm/file.c
diff options
context:
space:
mode:
authorMi Jinlong <mijinlong@cn.fujitsu.com>2011-01-04 11:16:45 -0500
committerSteve Dickson <steved@redhat.com>2011-01-04 11:16:45 -0500
commit57be18b9ab08148a1cc9d5af588119885720be8b (patch)
treef32f5c6afb316dead446d68127b988691be48546 /support/nsm/file.c
parent5c498280fd9353ded3ea169841079bdae23418e2 (diff)
downloadnfs-utils-57be18b9ab08148a1cc9d5af588119885720be8b.tar.gz
nfs-utils-57be18b9ab08148a1cc9d5af588119885720be8b.tar.xz
nfs-utils-57be18b9ab08148a1cc9d5af588119885720be8b.zip
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 <mijinlong@cn.fujitsu.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nsm/file.c')
-rw-r--r--support/nsm/file.c2
1 files changed, 1 insertions, 1 deletions
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) {