summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-02-01 15:57:16 -0800
committerJeremy Allison <jra@samba.org>2010-02-01 15:57:16 -0800
commit4e08d0d0d60be0fc4a080cd616ecb36253e490db (patch)
treeef5df9fb2e473e02433da5bbccb27c08b7965242
parentb3009819c55043aca81d5b53c805696dd4c88aac (diff)
downloadsamba-4e08d0d0d60be0fc4a080cd616ecb36253e490db.tar.gz
samba-4e08d0d0d60be0fc4a080cd616ecb36253e490db.tar.bz2
samba-4e08d0d0d60be0fc4a080cd616ecb36253e490db.zip
Arg. Got the sense of the test reversed to fix bug #7080 - Quota only shown when logged as root.. Doh !
Jeremy.
-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 9917481351..9a6931f4e3 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 (geteuid() == sec_initial_uid()) {
+ 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)),