another attempt at the damn SEC_STD_SYNCHRONIZE flag
[kai/samba.git] / source / 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|