git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69b9cbf
)
One less user of Get_Pwnam_modify()...
author
Andrew Bartlett
<abartlet@samba.org>
Fri, 6 Sep 2002 10:38:26 +0000
(10:38 +0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 6 Sep 2002 10:38:26 +0000
(10:38 +0000)
Andrew Bartlett
(This used to be commit
06b8a6fef466e006724bc49165fe936cf8fcfbfa
)
source3/smbd/password.c
patch
|
blob
|
history
diff --git
a/source3/smbd/password.c
b/source3/smbd/password.c
index f3a09e8c643e883e2f3028e1e856dbc9f3f204bb..ed3b14102b81d7a9da28be453226187733f6683d 100644
(file)
--- 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))
{