From 91b60a955c1b454e0e4c13135ef3ec31d4899099 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 4 Sep 2009 23:02:33 +0000 Subject: [PATCH] * NEWS, src/userdel.c, src/lastlog.c, src/gpasswd.c, src/newusers.c, src/chpasswd.c, src/groupmems.c, src/usermod.c, src/chgpasswd.c, src/vipw.c, src/su.c, src/useradd.c, src/groupmod.c, src/passwd.c, src/groupadd.c, src/chage.c, src/faillog.c, src/chsh.c: If someone uses the -h/--help options, the usage should not go to stderr nor should the utility exit with non-zero status. All of the shadow utils do just this unfortunately, so convert them over to sanity. * man/groupmems.8.xml, man/gpasswd.1.xml: Added option -h/--help. --- ChangeLog | 12 +++++++ NEWS | 6 ++++ man/gpasswd.1.xml | 10 +++++- man/groupmems.8.xml | 6 ++++ src/chage.c | 28 +++++++-------- src/chgpasswd.c | 21 ++++++------ src/chpasswd.c | 33 +++++++++--------- src/chsh.c | 14 ++++---- src/faillog.c | 42 +++++++++++++++-------- src/gpasswd.c | 20 ++++++----- src/groupadd.c | 33 +++++++++--------- src/groupmems.c | 18 ++++++---- src/groupmod.c | 29 +++++++++------- src/lastlog.c | 12 +++---- src/newusers.c | 29 ++++++++-------- src/passwd.c | 6 ++-- src/su.c | 10 +++--- src/useradd.c | 83 +++++++++++++++++++++++---------------------- src/userdel.c | 14 ++++---- src/usermod.c | 26 +++++++------- src/vipw.c | 24 ++++++------- 21 files changed, 271 insertions(+), 205 deletions(-) diff --git a/ChangeLog b/ChangeLog index 55deac41..78fa9060 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2009-09-05 Mike Frysinger + + * NEWS, src/userdel.c, src/lastlog.c, src/gpasswd.c, + src/newusers.c, src/chpasswd.c, src/groupmems.c, src/usermod.c, + src/chgpasswd.c, src/vipw.c, src/su.c, src/useradd.c, + src/groupmod.c, src/passwd.c, src/groupadd.c, src/chage.c, + src/faillog.c, src/chsh.c: If someone uses the -h/--help options, + the usage should not go to stderr nor should the utility exit with + non-zero status. All of the shadow utils do just this + unfortunately, so convert them over to sanity. + * man/groupmems.8.xml, man/gpasswd.1.xml: Added option -h/--help. + 2009-09-05 Nicolas François * src/useradd.c: Fixed wrong format string. diff --git a/NEWS b/NEWS index 4285be92..e562c449 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,11 @@ $Id$ +shadow-4.1.4.1 -> shadow-4.1.4.2 UNRELEASED + +- general + * report usage error to stderr, but report usage help to stdout (and return + zero) when explicitly requested (e.g. with --help). + shadow-4.1.4.1 -> shadow-4.1.4.2 2009-07-24 - general diff --git a/man/gpasswd.1.xml b/man/gpasswd.1.xml index 28dd8d06..99902238 100644 --- a/man/gpasswd.1.xml +++ b/man/gpasswd.1.xml @@ -1,7 +1,7 @@