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

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Fri Dec 9 21:35:57 UTC 2011


Author: nekral-guest
Date: 2011-12-09 21:35:57 +0000 (Fri, 09 Dec 2011)
New Revision: 3654

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/vipw.c
Log:
	* src/vipw.c: Do not use a hardcoded program name in the usage
	message.

Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2011-12-09 21:35:47 UTC (rev 3653)
+++ upstream/trunk/ChangeLog	2011-12-09 21:35:57 UTC (rev 3654)
@@ -1,5 +1,10 @@
 2011-12-09  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* src/vipw.c: Do not use a hardcoded program name in the usage
+	message.
+
+2011-12-04  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* po/ca.po, po/cs.po, po/da.po, po/de.po, po/es.po, po/eu.po,
 	po/fr.po, po/ja.po, po/kk.po, po/pt.po, po/pt_BR.po, po/ru.po,
 	po/sk.po, po/sv.po, po/vi.po, po/zh_CN.po: Quick unfuzzy.

Modified: upstream/trunk/src/vipw.c
===================================================================
--- upstream/trunk/src/vipw.c	2011-12-09 21:35:47 UTC (rev 3653)
+++ upstream/trunk/src/vipw.c	2011-12-09 21:35:57 UTC (rev 3654)
@@ -86,9 +86,11 @@
 static void usage (int status)
 {
 	FILE *usageout = (E_SUCCESS != status) ? stderr : stdout;
-	(void) fputs (_("Usage: vipw [options]\n"
-	                "\n"
-	                "Options:\n"), usageout);
+	(void) fprintf (stderr,
+	                _("Usage: %s [options]\n"
+	                  "\n"
+	                  "Options:\n"),
+	                Prog);
 	(void) fputs (_("  -g, --group                   edit group database\n"), usageout);
 	(void) fputs (_("  -h, --help                    display this help message and exit\n"), usageout);
 	(void) fputs (_("  -p, --passwd                  edit passwd database\n"), usageout);




More information about the Pkg-shadow-commits mailing list