]> git.saurik.com Git - apple/libinfo.git/blobdiff - gen.subproj/initgroups.c
Libinfo-278.0.3.tar.gz
[apple/libinfo.git] / gen.subproj / initgroups.c
index 0ca077a509575b4814e1572b3e220896772c05c1..2cce6892b87a1437e5ed1f3b05e87d4e75448479 100644 (file)
@@ -66,6 +66,9 @@ static char sccsid[] = "@(#)initgroups.c      8.1 (Berkeley) 6/4/93";
 #include <err.h>
 #include <pwd.h>
 
+__private_extern__ struct passwd *LI_files_getpwnam(const char *name);
+
+/* this is _old_initgroups */
 int
 initgroups(uname, agroup)
        const char *uname;
@@ -75,7 +78,7 @@ initgroups(uname, agroup)
        struct passwd *pw;
 
        /* get the UID for this user */
-       if ((pw = getpwnam(uname)) == NULL)
+       if ((pw = LI_files_getpwnam(uname)) == NULL)
                return(-1);
 
        /* fetch the initial (advisory) group list */