]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
setuidgid: Update --help output.
authorJim Meyering <meyering@redhat.com>
Sun, 25 Nov 2007 17:26:03 +0000 (18:26 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 25 Nov 2007 17:26:03 +0000 (18:26 +0100)
* src/setuidgid.c (usage): Describe -g GID[,GID1...] option.
Mention that USER may be a numeric ID or a user name.

ChangeLog
src/setuidgid.c

index aa23869c1f0212769bd18d231e140a44e62cf640..31192733bb831602b6ba435d8b3c866b2ac52e97 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-25  Jim Meyering  <meyering@redhat.com>
+
+       setuidgid: Update --help output.
+       * src/setuidgid.c (usage): Describe -g GID[,GID1...] option.
+       Mention that USER may be a numeric ID or a user name.
+
 2007-11-24  Jim Meyering  <meyering@redhat.com>
 
        Tweak new test.
index 6e3bd92c12490b58b7eed5c3edcb9d0db3d197bb..b3f4653c33716f19c849d34f1b0e5937f6eb52a6 100644 (file)
@@ -50,18 +50,22 @@ usage (int status)
   else
     {
       printf (_("\
-Usage: %s USERNAME COMMAND [ARGUMENT]...\n\
+Usage: %s OPTION USER COMMAND [ARGUMENT]...\n\
   or:  %s OPTION\n\
 "),
               program_name, program_name);
 
       fputs (_("\
-Drop any supplemental groups, assume the user-ID and group-ID of\n\
-the specified USERNAME, and run COMMAND with any specified ARGUMENTs.\n\
+Drop any supplemental groups, assume the user-ID and group-ID of the specified\n\
+USER (numeric ID or user name), and run COMMAND with any specified ARGUMENTs.\n\
 Exit with status 111 if unable to assume the required user and group ID.\n\
 Otherwise, exit with the exit status of COMMAND.\n\
 This program is useful only when run by root (user ID zero).\n\
 \n\
+"), stdout);
+      fputs (_("\
+  -g GID[,GID1...]  also set the primary group-ID to the numeric GID, and\n\
+                    (if specified) supplemental group IDs to GID1, ...\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);