summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-14 16:43:03 +0200
committerVolker Lendecke <vl@samba.org>2008-06-14 19:49:49 +0200
commitb935f4a2dca62d197195573ed868abe657a71993 (patch)
tree627f5d80b10e7293a8fb695f074d58d7fb8fe9e0 /source3
parentad538bf0ab4ae10ff10ea71898875d2d35e25dea (diff)
downloadsamba-b935f4a2dca62d197195573ed868abe657a71993.tar.gz
samba-b935f4a2dca62d197195573ed868abe657a71993.tar.bz2
samba-b935f4a2dca62d197195573ed868abe657a71993.zip
Consistently use snum in check_user_ok
Most already used it, these two still used SNUM(conn), where the only caller of this routine (change_to_user) had set snum = SNUM(conn). (This used to be commit b14e59bfdbfb62494002e22d0665c4d420484245)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/uid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 04796418bc..af992d7aee 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -87,7 +87,7 @@ static bool check_user_ok(connection_struct *conn, user_struct *vuser,int snum)
vuser->server_info->unix_name,
pdb_get_domain(vuser->server_info->sam_account),
vuser->server_info->ptok,
- SNUM(conn));
+ snum);
if (!readonly_share &&
!share_access_check(vuser->server_info->ptok, lp_servicename(snum),
@@ -133,7 +133,7 @@ static bool check_user_ok(connection_struct *conn, user_struct *vuser,int snum)
vuser->server_info->unix_name,
pdb_get_domain(vuser->server_info->sam_account),
NULL, vuser->server_info->ptok,
- lp_admin_users(SNUM(conn)));
+ lp_admin_users(snum));
conn->read_only = ent->read_only;
conn->admin_user = ent->admin_user;