diff options
author | Luke Leighton <lkcl@samba.org> | 1999-06-24 18:49:42 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-06-24 18:49:42 +0000 |
commit | 1d2557cc27b146aa88f70d4b973fd2178f90718b (patch) | |
tree | a787254b0475de9a472b15d8cb6cc4aa9c91027a /source/lib/username.c | |
parent | 8d73f83b6c112327a51c0df2e96a1866deb13c3a (diff) | |
download | samba-1d2557cc27b146aa88f70d4b973fd2178f90718b.tar.gz samba-1d2557cc27b146aa88f70d4b973fd2178f90718b.tar.xz samba-1d2557cc27b146aa88f70d4b973fd2178f90718b.zip |
#ifdef'd out hashed_getpwnam.
Diffstat (limited to 'source/lib/username.c')
-rw-r--r-- | source/lib/username.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/lib/username.c b/source/lib/username.c index f5fbd31e11c..a3ee8714231 100644 --- a/source/lib/username.c +++ b/source/lib/username.c @@ -228,6 +228,9 @@ static BOOL have_passwd_hash(void) struct passwd *hashed_getpwnam(const char *name) { +#ifndef USE_HASHED_GETPWNAM + return getpwnam(name); +#else struct passwd_hash_table_s *pht=&passwd_hash_table; DEBUG(5,("getpwnam(%s)\n", name)); @@ -257,6 +260,7 @@ struct passwd *hashed_getpwnam(const char *name) } /* Fall back to real getpwnam() */ return getpwnam(name); +#endif } /******************************************************************* |