libnsm.a: modify return value to false from 0 at nsm_drop_privileges()
Subsystems (2)
PATCH 1/1 libnsm.a: modify return value to false from 0 at nsm_drop_privileges()
At nsm_drop_privileges(), for improving readability, unify the return value.
--- support/nsm/file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
support/nsm/file.c +1 -1
@@ -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 ) {
Signature · 1 line
1.7.3.3
PATCH 1/1 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 <[email protected]>
--- support/nsm/file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
support/nsm/file.c +1 -1
@@ -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 ) {
-- 1.7.3.3
Quoted 12 lines · Mi Jinlong
At
nsm_drop_privileges(), for improving readability, unify the return value.--- support/nsm/file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)support/nsm/file.c +0
-0
support/nsm/file.c nsm_drop_privileges(const int pidfd) · line 427
Quoted 8 lines
support/nsm/file.c +1
-1@@ -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 ) {
Committed... Thanks!
steved