1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Remove current_user references from nttrans.c

This commit is contained in:
Volker Lendecke 2008-06-19 18:48:10 +02:00
parent 5595cdf837
commit 5f8a5e68ea

View File

@ -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));