From cc8be680ca232a625a3852e7d13e2584d57c0636 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 9 Dec 2011 21:35:57 +0000 Subject: [PATCH] * src/vipw.c: Do not use a hardcoded program name in the usage message. --- ChangeLog | 5 +++++ src/vipw.c | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ebc8865f..2c76703c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-12-09 Nicolas François + * src/vipw.c: Do not use a hardcoded program name in the usage + message. + +2011-12-04 Nicolas François + * 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. diff --git a/src/vipw.c b/src/vipw.c index 5a2ce3a4..e3d4e421 100644 --- a/src/vipw.c +++ b/src/vipw.c @@ -86,9 +86,11 @@ static void vipwedit (const char *, int (*)(void), int (*)(void)); 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);