Arg. Got the sense of the test reversed to fix bug #7080 - Quota only shown when...
authorJeremy Allison <jra@samba.org>
Mon, 1 Feb 2010 23:57:16 +0000 (15:57 -0800)
committerJeremy Allison <jra@samba.org>
Mon, 1 Feb 2010 23:57:16 +0000 (15:57 -0800)
Jeremy.

source3/smbd/fake_file.c

index 9917481351a6b1849af438402fa441dd49fbc6d0..9a6931f4e365b20d185e9115e488c484ad7ee018 100644 (file)
@@ -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)),