bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] priv-set: fix comments


From: Paul Eggert
Subject: [PATCH] priv-set: fix comments
Date: Mon, 23 Aug 2010 22:40:29 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6

* lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
to match code, as suggested by David Bartley in:
http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
---
 ChangeLog      |    7 +++++++
 lib/priv-set.c |    5 ++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6429e2f..90e0d3d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-08-23  Paul Eggert  <address@hidden>
+
+       priv-set: fix comments
+       * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
+       to match code, as suggested by David Bartley in:
+       http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
+
 2010-08-23  Eric Blake  <address@hidden>
 
        stdbool: avoid rejecting clang
diff --git a/lib/priv-set.c b/lib/priv-set.c
index 0ac1b97..17a3e31 100644
--- a/lib/priv-set.c
+++ b/lib/priv-set.c
@@ -78,7 +78,7 @@ priv_set_ismember (const char *priv)
 
 
 /* Try to remove priv from the effective set.
-   Returns 0 if priv was removed from or was not present in the effective set.
+   Returns 0 if priv was removed.
    Returns -1 on error with errno set appropriately.  */
 int
 priv_set_remove (const char *priv)
@@ -110,8 +110,7 @@ priv_set_remove (const char *priv)
 
 /* Try to restore priv to the effective set.
    Returns 0 if priv was re-added to the effective set (after being prviously
-   removed by a call to priv_set_remove) or if priv was already in the
-   effective set.
+   removed by a call to priv_set_remove).
    Returns -1 on error with errno set appropriately.  */
 int
 priv_set_restore (const char *priv)
-- 
1.7.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]