From e4eed6e8f4d79b7ae6fc5447b1af02a73ef7777e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 6 Sep 2002 10:38:26 +0000 Subject: One less user of Get_Pwnam_modify()... Andrew Bartlett (This used to be commit 06b8a6fef466e006724bc49165fe936cf8fcfbfa) --- source3/smbd/password.c | 6 ++++-- 1 file 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)) { -- cgit