From: Sami Kerola Date: Sun, 14 Dec 2014 12:31:11 +0000 (+0000) Subject: chfn: fix usage() regression X-Git-Tag: v2.26-rc1~112^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=496083bad6c5668d2f615906eb877d63cf5d7c6c;p=thirdparty%2Futil-linux.git chfn: fix usage() regression Commit db433bf737a5fd4e1c7cca5e3603934743eebd1c changed -u for --help to -h, that is not true. The -h is short hand for --home-phone. And the --version is accompanied with -v not -V. Signed-off-by: Sami Kerola --- diff --git a/login-utils/chfn.c b/login-utils/chfn.c index 4746927c82..9833591e87 100644 --- a/login-utils/chfn.c +++ b/login-utils/chfn.c @@ -77,8 +77,8 @@ static void __attribute__((__noreturn__)) usage(FILE *fp) fputs(_(" -p, --office-phone office phone number\n"), fp); fputs(_(" -h, --home-phone home phone number\n"), fp); fputs(USAGE_SEPARATOR, fp); - fputs(USAGE_HELP, fp); - fputs(USAGE_VERSION, fp); + fputs(_(" -u, --help display this help and exit\n"), fp); + fputs(_(" -v, --version output version information and exit\n"), fp); fprintf(fp, USAGE_MAN_TAIL("chfn(1)")); exit(fp == stderr ? EXIT_FAILURE : EXIT_SUCCESS); }