[Pkg-shadow-commits] r2344 - in upstream/trunk: . man src

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Thu Sep 4 20:20:21 UTC 2008


Author: nekral-guest
Date: 2008-09-04 20:20:20 +0000 (Thu, 04 Sep 2008)
New Revision: 2344

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/NEWS
   upstream/trunk/man/groupmems.8.xml
   upstream/trunk/src/groupmems.c
Log:
	* NEWS, src/groupmems.c, man/groupmems.8.xml: Document the long
	options.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-09-04 19:36:27 UTC (rev 2343)
+++ upstream/trunk/ChangeLog	2008-09-04 20:20:20 UTC (rev 2344)
@@ -1,3 +1,8 @@
+2008-09-04  Nicolas François  <nicolas.francois at centraliens.net>
+
+	* NEWS, src/groupmems.c, man/groupmems.8.xml: Document the long
+	options.
+
 2008-09-03  Nicolas François  <nicolas.francois at centraliens.net>
 
 	* lib/prototypes.h, libmisc/audit_help.c: Define new type

Modified: upstream/trunk/NEWS
===================================================================
--- upstream/trunk/NEWS	2008-09-04 19:36:27 UTC (rev 2343)
+++ upstream/trunk/NEWS	2008-09-04 20:20:20 UTC (rev 2344)
@@ -25,6 +25,8 @@
   * Use the groupmems PAM service name instead of groupmod.
   * Fix segmentation faults when adding or removing users from a group.
   * Added support for shadow groups.
+  * Added support long options --add (-a), --delete (-d), --purge (-p),
+    --list (-l), --group (-g).
 - newusers
   * Implement the -r, --system option.
 - passwd

Modified: upstream/trunk/man/groupmems.8.xml
===================================================================
--- upstream/trunk/man/groupmems.8.xml	2008-09-04 19:36:27 UTC (rev 2343)
+++ upstream/trunk/man/groupmems.8.xml	2008-09-04 20:20:20 UTC (rev 2344)
@@ -50,7 +50,7 @@
     </para>
     <variablelist remap='IP'>
       <varlistentry>
-	<term><option>-a</option> <replaceable>user_name</replaceable></term>
+	<term><option>-a</option>, <option>--add</option> <replaceable>user_name</replaceable></term>
 	<listitem>
 	  <para>Add a new user to the group membership list.</para>
 	  <para condition="gshadow">
@@ -61,7 +61,7 @@
 	</listitem>
       </varlistentry>
       <varlistentry>
-	<term><option>-d</option> <replaceable>user_name</replaceable></term>
+	<term><option>-d</option>, <option>--delete</option> <replaceable>user_name</replaceable></term>
 	<listitem>
 	  <para>Delete a user from the group membership list.</para>
 	  <para condition="gshadow">
@@ -77,7 +77,7 @@
 	</listitem>
       </varlistentry>
       <varlistentry>
-	<term><option>-g</option> <replaceable>group_name</replaceable></term>
+	<term><option>-g</option>, <option>--group</option> <replaceable>group_name</replaceable></term>
 	<listitem>
 	  <para>The superuser can specify which group membership
 	    list to modify.
@@ -85,13 +85,13 @@
 	</listitem>
       </varlistentry>
       <varlistentry>
-	<term><option>-l</option></term>
+	<term><option>-l</option>, <option>--list</option></term>
 	<listitem>
 	  <para>List the group membership list.</para>
 	</listitem>
       </varlistentry>
       <varlistentry>
-	<term><option>-p</option></term>
+	<term><option>-p</option>, <option>--purge</option></term>
 	<listitem>
 	  <para>Purge all users from the group membership list.</para>
 	  <para condition="gshadow">

Modified: upstream/trunk/src/groupmems.c
===================================================================
--- upstream/trunk/src/groupmems.c	2008-09-04 19:36:27 UTC (rev 2343)
+++ upstream/trunk/src/groupmems.c	2008-09-04 20:20:20 UTC (rev 2344)
@@ -362,7 +362,18 @@
 
 static void usage (void)
 {
-	(void) fputs (_("Usage: groupmems -a username | -d username | -p | -l [-g groupname]\n"), stderr);
+	(void) fputs (_("Usage: groupmems [options] [action]\n"
+	                "\n"
+	                "Options:\n"
+	                "  -g, --group groupname         change groupname instead of the user's group\n"
+	                "                                (root only)\n"
+	                "\n"
+	                "Actions:\n"
+	                "  -a, --add username            add username to the members of the group\n"
+	                "  -d, --delete username         remove username from the members of the group\n"
+	                "  -p, --purge                   purge all members from the group\n"
+	                "  -l, --list                    list the members of the group\n"
+	                "\n"), stderr);
 	fail_exit (EXIT_USAGE);
 }
 




More information about the Pkg-shadow-commits mailing list