From 3e13a5f6dcdad312efed1982b22d316096dd81d8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 14 Mar 1994 18:47:31 +0000 Subject: . --- lib/userspec.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/userspec.c') diff --git a/lib/userspec.c b/lib/userspec.c index 34b1d3211..6de8b824d 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; } } -- cgit v1.2.3-54-g00ecf