From: Jim Meyering Date: Mon, 14 Mar 1994 18:47:31 +0000 (+0000) Subject: . X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a84bc4587b2b38448098dd7f69843a83ecd24dc;p=pspp . --- diff --git a/lib/userspec.c b/lib/userspec.c index 34b1d32119..6de8b824d0 100644 --- a/lib/userspec.c +++ b/lib/userspec.c @@ -44,8 +44,6 @@ #ifdef STDC_HEADERS #include -#else -char *malloc (); #endif #ifdef HAVE_UNISTD_H @@ -189,7 +187,7 @@ parse_user_spec (spec_arg, uid, gid, username, groupname) } } - if (g != NULL) + if (g != NULL && error_msg == NULL) { /* Explicit group. */ grp = getgrnam (g); @@ -208,7 +206,7 @@ parse_user_spec (spec_arg, uid, gid, username, groupname) { *groupname = strdup (g); if (*groupname == NULL) - return tired; + error_msg = tired; } }