diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-04-29 17:19:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:22 -0500 |
commit | 87e97d7723674e3835578ef080ce554d9c5537ac (patch) | |
tree | 21f1f174008b69a5e5d224ec063aa0475404418a /source/smbd/nttrans.c | |
parent | 567f79237727a446c0e8427f18c74f00eca45c8e (diff) | |
download | samba-87e97d7723674e3835578ef080ce554d9c5537ac.tar.gz samba-87e97d7723674e3835578ef080ce554d9c5537ac.tar.xz samba-87e97d7723674e3835578ef080ce554d9c5537ac.zip |
r408: - replace (conn->admin_user != True) with (current_user.uid != 0)
because someone changed it in all other places too
- fix quotas support from windows explorer
we now got the unix file name of a fake_file
metze
Diffstat (limited to 'source/smbd/nttrans.c')
-rw-r--r-- | source/smbd/nttrans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c index 6ba74d5d503..e4ffec339b7 100644 --- a/source/smbd/nttrans.c +++ b/source/smbd/nttrans.c @@ -2351,7 +2351,7 @@ static int call_nt_transact_set_user_quota(connection_struct *conn, char *inbuf, ZERO_STRUCT(qt); /* access check */ - if (conn->admin_user != True) { + if (current_user.uid != 0) { DEBUG(1,("set_user_quota: access_denied service [%s] user [%s]\n", lp_servicename(SNUM(conn)),conn->user)); return ERROR_DOS(ERRDOS,ERRnoaccess); |