summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-19 18:48:10 +0200
committerVolker Lendecke <vl@samba.org>2008-06-19 18:51:38 +0200
commitbe5dc4f3c82210860661954cad81bcb37d495db7 (patch)
tree4dadaa19e994bb9362388b7e2db022fcdc0759ac /source3/smbd
parent52664f62ba84719a9ea6eb8f9c01f1f3a9bd1b24 (diff)
downloadsamba-be5dc4f3c82210860661954cad81bcb37d495db7.tar.gz
samba-be5dc4f3c82210860661954cad81bcb37d495db7.tar.bz2
samba-be5dc4f3c82210860661954cad81bcb37d495db7.zip
Remove current_user references from nttrans.c
(This used to be commit 5f8a5e68ea166fbeda3af6e5ec381ec09d06f0f6)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/nttrans.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index ad5db7a3e7..12f4da627b 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -22,7 +22,6 @@
extern int max_send;
extern enum protocol_types Protocol;
-extern struct current_user current_user;
static const char *known_nt_pipes[] = {
"\\LANMAN",
@@ -2036,7 +2035,7 @@ static void call_nt_transact_get_user_quota(connection_struct *conn,
ZERO_STRUCT(qt);
/* access check */
- if (current_user.ut.uid != 0) {
+ if (conn->server_info->utok.uid != 0) {
DEBUG(1,("get_user_quota: access_denied service [%s] user "
"[%s]\n", lp_servicename(SNUM(conn)),
conn->server_info->unix_name));
@@ -2303,7 +2302,7 @@ static void call_nt_transact_set_user_quota(connection_struct *conn,
ZERO_STRUCT(qt);
/* access check */
- if (current_user.ut.uid != 0) {
+ if (conn->server_info->utok.uid != 0) {
DEBUG(1,("set_user_quota: access_denied service [%s] user "
"[%s]\n", lp_servicename(SNUM(conn)),
conn->server_info->unix_name));