diff options
author | Jeremy Allison <jra@samba.org> | 2010-02-01 15:55:55 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-02-01 15:55:55 -0800 |
commit | b3009819c55043aca81d5b53c805696dd4c88aac (patch) | |
tree | 3cc7055efca31ef97029d8dd9b0502a6f04d5c28 /source3/smbd | |
parent | 431d75fc9c7f942dcbd31f80380dda59887ac229 (diff) | |
download | samba-b3009819c55043aca81d5b53c805696dd4c88aac.tar.gz samba-b3009819c55043aca81d5b53c805696dd4c88aac.tar.bz2 samba-b3009819c55043aca81d5b53c805696dd4c88aac.zip |
Fix bug #7080 - Quota only shown when logged as root.
conn->server_info->utok.uid == 0
isn't the correct check to see if we're root anymore. As rpc_samr_nt.c does,
the correct check is :
geteuid() == sec_initial_uid()
Jeremy.
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/fake_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/fake_file.c b/source3/smbd/fake_file.c index 6898793d29..9917481351 100644 --- a/source3/smbd/fake_file.c +++ b/source3/smbd/fake_file.c @@ -126,7 +126,7 @@ NTSTATUS open_fake_file(struct smb_request *req, connection_struct *conn, NTSTATUS status; /* access check */ - if (conn->server_info->utok.uid != 0) { + if (geteuid() == sec_initial_uid()) { DEBUG(3, ("open_fake_file_shared: access_denied to " "service[%s] file[%s] user[%s]\n", lp_servicename(SNUM(conn)), |