summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;