All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mi Jinlong <mijinlong@cn.fujitsu.com>
To: Steve Dickson <SteveD@redhat.com>
Cc: NFSv3 list <linux-nfs@vger.kernel.org>
Subject: [PATCH] libnsm.a: modify return value to false from 0 at nsm_drop_privileges()
Date: Fri, 24 Dec 2010 13:12:58 +0800	[thread overview]
Message-ID: <4D142BDA.6080809@cn.fujitsu.com> (raw)

At nsm_drop_privileges(), for improving readability, unify
the return value.

---
 support/nsm/file.c |    2 +-
 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) {
-- 
1.7.3.3



             reply	other threads:[~2010-12-24  5:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-24  5:12 Mi Jinlong [this message]
2010-12-24  5:14 ` [PATCH] libnsm.a: modify return value to false from 0 at nsm_drop_privileges() Mi Jinlong
2011-01-04 16:19 ` Steve Dickson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D142BDA.6080809@cn.fujitsu.com \
    --to=mijinlong@cn.fujitsu.com \
    --cc=SteveD@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.