From 0f6896b7a0d3038c205ce7e86e323315e8219faa Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Thu, 24 Jun 1999 18:49:42 +0000 Subject: #ifdef'd out hashed_getpwnam. (This used to be commit 1d2557cc27b146aa88f70d4b973fd2178f90718b) --- source3/lib/username.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/lib/username.c') diff --git a/source3/lib/username.c b/source3/lib/username.c index f5fbd31e11..a3ee871423 100644 --- a/source3/lib/username.c +++ b/source3/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 } /******************************************************************* -- cgit