summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-12-20 11:54:07 -0800
committerAndrew Bartlett <abartlet@samba.org>2013-01-09 15:28:39 +1100
commit2e2f46433c657f8e9e68aaaee15e24ed41244d82 (patch)
treecc2b1d9e68718d1ea6cdde7b4c4f3ef626203661
parent0a09ffd188f7bc9d8e9e4272af355e53081bf7da (diff)
downloadsamba-2e2f46433c657f8e9e68aaaee15e24ed41244d82.tar.gz
samba-2e2f46433c657f8e9e68aaaee15e24ed41244d82.tar.bz2
samba-2e2f46433c657f8e9e68aaaee15e24ed41244d82.zip
Remove dead code now vuser can no longer be NULL.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source3/smbd/uid.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 9fc5d7c35d..298fa83112 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -299,14 +299,6 @@ bool change_to_user(connection_struct *conn, uint64_t vuid)
}
session_info = vuser->session_info;
-
- if (!conn->force_user && vuser == NULL) {
- DEBUG(2,("Invalid vuid used %llu in accessing share %s.\n",
- (unsigned long long)vuid,
- lp_servicename(talloc_tos(), snum)));
- return False;
- }
-
return change_to_user_internal(conn, session_info, vuid);
}