X-Git-Url: https://git.saurik.com/apple/libinfo.git/blobdiff_plain/c29f2fccbf0d388644e29ea3e98c38a343688bd2..84e6ee29846bd48cc36d74aeb5c13c52a59c5a55:/gen.subproj/initgroups.c diff --git a/gen.subproj/initgroups.c b/gen.subproj/initgroups.c index 0ca077a..2cce689 100644 --- a/gen.subproj/initgroups.c +++ b/gen.subproj/initgroups.c @@ -66,6 +66,9 @@ static char sccsid[] = "@(#)initgroups.c 8.1 (Berkeley) 6/4/93"; #include #include +__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 */