r1683 - crux-2.2/ports/core/shadow
Author: jw Date: 2006-08-04 09:16:49 +0200 (Fri, 04 Aug 2006) New Revision: 1683 Added: crux-2.2/ports/core/shadow/shadow-4.0.18.1-useradd.diff Log: shadow: add the patch :-) Added: crux-2.2/ports/core/shadow/shadow-4.0.18.1-useradd.diff =================================================================== --- crux-2.2/ports/core/shadow/shadow-4.0.18.1-useradd.diff (rev 0) +++ crux-2.2/ports/core/shadow/shadow-4.0.18.1-useradd.diff 2006-08-04 07:16:49 UTC (rev 1683) @@ -0,0 +1,21 @@ +--- shadow-4.0.18.1/src/useradd.c.orig 2006-08-04 08:22:46.000000000 +0200 ++++ shadow-4.0.18.1/src/useradd.c 2006-08-04 08:39:49.000000000 +0200 +@@ -203,13 +203,17 @@ + long gid; + char *errptr; + ++ struct group* grp = getgrnam(grname); ++ if (grp) ++ return grp; ++ + gid = strtol (grname, &errptr, 10); + if (*errptr || errno == ERANGE || gid < 0) { + fprintf (stderr, + _("%s: invalid numeric argument '%s'\n"), Prog, grname); + exit (E_BAD_ARG); + } +- return getgrnam (grname); ++ return getgrgid(gid); + } + + static long get_number (const char *numstr)
participants (1)
-
crux@crux.nu