1 #pragma ident "%Z%%M% %I% %E% SMI" 2 3 /* 4 * Replacement for getpwnam - we need it to handle files other than 5 * /etc/passwd so we can permit different passwd files for each different 6 * host 7 * (c) 1998-2000 by Bernhard Rosenkränzer <bero@redhat.com> 8 * 19980930 Initial version 9 * 20000211 Various fixes 10 */ 11 12 #include <pwd.h> 13 #include <sys/types.h> 14 #include <stdio.h> 15 #ifdef SHADOW_PASSWORD 16 # ifdef HAVE_SHADOW_H 17 # include <shadow.h> 18 # endif 19 #endif 20 21 struct passwd *bero_getpwnam(const char * name, const char * file); 22 struct passwd *bero_getpwuid(uid_t uid, const char * file); 23 #ifdef SHADOW_PASSWORD 24 struct spwd *bero_getspnam(const char * name, const char * file); 25 #endif