From 289913e5ffe7d73e59440af36bc9149d7cc3485a Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Thu, 5 Nov 2009 22:03:36 +0000 Subject: [PATCH] * NEWS, src/groupmod.c: Fixed groupmod when configured with --enable-account-tools-setuid. --- ChangeLog | 5 +++++ NEWS | 2 ++ src/groupmod.c | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 63ffd0e6..d26a6a98 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-11-05 Nicolas François + + * NEWS, src/groupmod.c: Fixed groupmod when configured with + --enable-account-tools-setuid. + 2009-11-01 Nicolas François * NEWS, man/login.defs.d/ENV_SUPATH.xml, libmisc/setupenv.c: diff --git a/NEWS b/NEWS index 064e6bdd..474ef8b0 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,8 @@ shadow-4.1.4.2 -> shadow-4.1.4.3 UNRELEASED * report usage error to stderr, but report usage help to stdout (and return zero) when explicitly requested (e.g. with --help). +- groupmod + * Fixed groupmod when configured with --enable-account-tools-setuid. - su * Document the su exit values. * When su receives a signal, wait for the child to terminate (after diff --git a/src/groupmod.c b/src/groupmod.c index 4205df20..da6d77f2 100644 --- a/src/groupmod.c +++ b/src/groupmod.c @@ -724,7 +724,7 @@ int main (int argc, char **argv) { struct passwd *pampw; pampw = getpwuid (getuid ()); /* local, no need for xgetpwuid */ - if (NULL == pamh) { + if (NULL == pampw) { fprintf (stderr, _("%s: Cannot determine your user name.\n"), Prog); -- 2.40.0