libnsm.a: modify return value to false from 0 at nsm_drop_privileges()
authorMi Jinlong <mijinlong@cn.fujitsu.com>
Tue, 4 Jan 2011 16:16:45 +0000 (11:16 -0500)
committerSteve Dickson <steved@redhat.com>
Tue, 4 Jan 2011 16:16:45 +0000 (11:16 -0500)
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>
support/nsm/file.c

index e21c7d4..98b47bf 100644 (file)
@@ -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) {