changeset 195:ed9f884b64fc

.
author Jim Meyering <jim@meyering.net>
date Mon, 14 Mar 1994 18:47:31 +0000
parents 1a1e462a2bea
children 755d21b8886f
files lib/userspec.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lib/userspec.c
+++ b/lib/userspec.c
@@ -44,8 +44,6 @@
 
 #ifdef STDC_HEADERS
 #include <stdlib.h>
-#else
-char *malloc ();
 #endif
 
 #ifdef HAVE_UNISTD_H
@@ -189,7 +187,7 @@
 	}
     }
 
-  if (g != NULL)
+  if (g != NULL && error_msg == NULL)
     {
       /* Explicit group.  */
       grp = getgrnam (g);
@@ -208,7 +206,7 @@
 	{
 	  *groupname = strdup (g);
 	  if (*groupname == NULL)
-	    return tired;
+	    error_msg = tired;
 	}
     }