summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-06 10:38:26 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-06 10:38:26 +0000
commite4eed6e8f4d79b7ae6fc5447b1af02a73ef7777e (patch)
tree2b8352ebebeca1264c7432fbef39e4c6efbce99d /source3
parent69b9cbf32744d4cb5327c8baca1308a48ae96b22 (diff)
downloadsamba-e4eed6e8f4d79b7ae6fc5447b1af02a73ef7777e.tar.gz
samba-e4eed6e8f4d79b7ae6fc5447b1af02a73ef7777e.tar.bz2
samba-e4eed6e8f4d79b7ae6fc5447b1af02a73ef7777e.zip
One less user of Get_Pwnam_modify()...
Andrew Bartlett (This used to be commit 06b8a6fef466e006724bc49165fe936cf8fcfbfa)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/password.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index f3a09e8c64..ed3b14102b 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -224,9 +224,11 @@ add a name to the session users list
void add_session_user(const char *user)
{
fstring suser;
- StrnCpy(suser,user,sizeof(suser)-1);
+ struct passwd *passwd;
- if (!Get_Pwnam_Modify(suser)) return;
+ if (!passwd = Get_Pwnam(user)) return;
+
+ StrnCpy(suser,passwd->pw_name,sizeof(suser)-1);
if (suser && *suser && !in_list(suser,session_users,False))
{