summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-06-24 18:49:42 +0000
committerLuke Leighton <lkcl@samba.org>1999-06-24 18:49:42 +0000
commit0f6896b7a0d3038c205ce7e86e323315e8219faa (patch)
tree03c5e2aad548eadcd50d538cf8bacea7f88bcc4e
parent0c927f2b1b7ff547954a7a68fd44c7ce8ad65299 (diff)
downloadsamba-0f6896b7a0d3038c205ce7e86e323315e8219faa.tar.gz
samba-0f6896b7a0d3038c205ce7e86e323315e8219faa.tar.bz2
samba-0f6896b7a0d3038c205ce7e86e323315e8219faa.zip
#ifdef'd out hashed_getpwnam.
(This used to be commit 1d2557cc27b146aa88f70d4b973fd2178f90718b)
-rw-r--r--source3/lib/username.c4
1 files changed, 4 insertions, 0 deletions
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
}
/*******************************************************************