priv-set: fix comments
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Aug 2010 05:34:00 +0000 (22:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Aug 2010 05:34:00 +0000 (22:34 -0700)
* 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
lib/priv-set.c

index 6429e2f58534a4062c9bb72d4a2579ecdf05a83d..90e0d3d2cd2191943451a353a3f467969b160fce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <eblake@redhat.com>
 
        stdbool: avoid rejecting clang
index 0ac1b977e269da7d8a03b86a9901691145051b0c..17a3e31b7786d8138723bcedf6d960409d46e501 100644 (file)
@@ -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)