]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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 e21c7d43e58ec1c19e1d1a9b89cb459e467ab9cd..98b47bf8bd9f0b4dae29861b446d7ab3f137d134 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) {