summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-07-28 01:46:47 +0000
committerJeremy Allison <jra@samba.org>2001-07-28 01:46:47 +0000
commitbd0eacb24cb5b138e9c95dc56d023119dec66f4c (patch)
tree2b68f842c7dc59b4d4060635b93b868210479958
parent4b28b5a1bb0eea0a1ad2853c15a99d223e3a6717 (diff)
downloadsamba-bd0eacb24cb5b138e9c95dc56d023119dec66f4c.tar.gz
samba-bd0eacb24cb5b138e9c95dc56d023119dec66f4c.tar.bz2
samba-bd0eacb24cb5b138e9c95dc56d023119dec66f4c.zip
Fix invalid uid being used after logoff. Thanks to Nigel Williams
for this bug report. Jeremy. (This used to be commit 50d8e5b22f2c2c792e3a2d33e00a1c9caab48981)
-rw-r--r--source3/smbd/uid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 0070781d24..9fe634a7e9 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -127,8 +127,7 @@ BOOL become_user(connection_struct *conn, uint16 vuid)
if (conn->force_user ||
conn->admin_user ||
- lp_security() == SEC_SHARE ||
- !(vuser) || (vuser->guest)) {
+ (lp_security() == SEC_SHARE)) {
uid = conn->uid;
gid = conn->gid;
current_user.groups = conn->groups;