another attempt at the damn SEC_STD_SYNCHRONIZE flag
authorAndrew Tridgell <tridge@samba.org>
Tue, 27 May 2008 06:02:27 +0000 (16:02 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 27 May 2008 06:02:27 +0000 (16:02 +1000)
(This used to be commit 2ac27bfffa557d6c0f71c443b43a8d1967edb177)

source4/ntvfs/posix/pvfs_open.c

index adcdeb1f2bbe095d3efd0453a2fbd25535eff7e6..908dd449afc6d314bbe0de51be3743777efb2b15 100644 (file)
@@ -1155,14 +1155,11 @@ NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs,
                return NT_STATUS_ACCESS_DENIED;
        }
 
-#if 0
        /* what does this bit really mean?? */
        if (req->ctx->protocol == PROTOCOL_SMB2 &&
-           (access_mask & SEC_STD_SYNCHRONIZE) &&
-           !(access_mask & SEC_STD_READ_CONTROL)) {
+           access_mask == SEC_STD_SYNCHRONIZE) {
                return NT_STATUS_ACCESS_DENIED;
        }
-#endif
 
        if (io->ntcreatex.in.file_attr & (FILE_ATTRIBUTE_DEVICE|
                                          FILE_ATTRIBUTE_VOLUME|