summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-02-01 15:55:55 -0800
committerJeremy Allison <jra@samba.org>2010-02-01 15:55:55 -0800
commitb3009819c55043aca81d5b53c805696dd4c88aac (patch)
tree3cc7055efca31ef97029d8dd9b0502a6f04d5c28 /source3/smbd
parent431d75fc9c7f942dcbd31f80380dda59887ac229 (diff)
downloadsamba-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.c2
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)),