summaryrefslogtreecommitdiff
path: root/source3/smbd/password.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-05-06 18:05:45 +0000
committerLuke Leighton <lkcl@samba.org>1999-05-06 18:05:45 +0000
commit150645f955d1f15b0ea43069020070424f774521 (patch)
tree392a53016e1af6844066696570b2180344578744 /source3/smbd/password.c
parentc6e5eb5bc29565da4a1b5d528696b35d5887df7d (diff)
downloadsamba-150645f955d1f15b0ea43069020070424f774521.tar.gz
samba-150645f955d1f15b0ea43069020070424f774521.tar.bz2
samba-150645f955d1f15b0ea43069020070424f774521.zip
Jani Jaakkola's "getpwuid() / getpwnam()" hash-cache-hack
(This used to be commit 899fc053c50448db65092d9f25fea99433cfb29f)
Diffstat (limited to 'source3/smbd/password.c')
-rw-r--r--source3/smbd/password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 11fe69b103..daead8bb82 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -224,7 +224,7 @@ uint16 register_vuid(uid_t uid,gid_t gid, char *unix_name, char *requested_name,
DEBUG(3, ("Clearing default real name\n"));
fstrcpy(vuser->real_name, "<Full Name>\0");
if (lp_unix_realname()) {
- if ((pwfile=getpwnam(vuser->name))!= NULL)
+ if ((pwfile=hashed_getpwnam(vuser->name))!= NULL)
{
DEBUG(3, ("User name: %s\tReal name: %s\n",vuser->name,pwfile->pw_gecos));
fstrcpy(vuser->real_name, pwfile->pw_gecos);