diff options
author | Volker Lendecke <vl@samba.org> | 2008-06-19 18:48:10 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-06-19 18:51:38 +0200 |
commit | be5dc4f3c82210860661954cad81bcb37d495db7 (patch) | |
tree | 4dadaa19e994bb9362388b7e2db022fcdc0759ac /source3 | |
parent | 52664f62ba84719a9ea6eb8f9c01f1f3a9bd1b24 (diff) | |
download | samba-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')
-rw-r--r-- | source3/smbd/nttrans.c | 5 |
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)); |