mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
parent
0c927f2b1b
commit
0f6896b7a0
@ -228,6 +228,9 @@ static BOOL have_passwd_hash(void)
|
|||||||
|
|
||||||
struct passwd *hashed_getpwnam(const char *name)
|
struct passwd *hashed_getpwnam(const char *name)
|
||||||
{
|
{
|
||||||
|
#ifndef USE_HASHED_GETPWNAM
|
||||||
|
return getpwnam(name);
|
||||||
|
#else
|
||||||
struct passwd_hash_table_s *pht=&passwd_hash_table;
|
struct passwd_hash_table_s *pht=&passwd_hash_table;
|
||||||
|
|
||||||
DEBUG(5,("getpwnam(%s)\n", name));
|
DEBUG(5,("getpwnam(%s)\n", name));
|
||||||
@ -257,6 +260,7 @@ struct passwd *hashed_getpwnam(const char *name)
|
|||||||
}
|
}
|
||||||
/* Fall back to real getpwnam() */
|
/* Fall back to real getpwnam() */
|
||||||
return getpwnam(name);
|
return getpwnam(name);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************
|
/*******************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user