user is specified with -a.
+2008-07-30 Lukáš Kuklínek <lkukline@redhat.com>
+
+ * src/groupmems.c: Only check if the adduser user exists when an
+ user is specified with -a.
+
2008-07-30 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Fix the groupmems' usage message. The -D option
}
/* local, no need for xgetpwnam */
- if (getpwnam (adduser) == NULL) {
+ if ( (NULL != adduser)
+ && (getpwnam (adduser) == NULL)) {
fprintf (stderr, _("%s: user `%s' does not exist\n"),
Prog, adduser);
fail_exit (EXIT_INVALID_USER);