r9054: removed incorrect paranoia check on opening streams (this caused RAW-STREAMS...
authorAndrew Tridgell <tridge@samba.org>
Thu, 4 Aug 2005 06:14:34 +0000 (06:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:31:12 +0000 (13:31 -0500)
(This used to be commit c164ee5b19f6880b7b5df8d8fb96704350432862)

source4/ntvfs/posix/pvfs_open.c

index d3b9681b58b1b006b57a6ee9aeb2db29c1cdf77d..94749600e1cc6fdb7ea69d2aa6810b18c8fab9a1 100644 (file)
@@ -1075,9 +1075,6 @@ NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs,
 
        /* if this was a stream create then create the stream as well */
        if (!name->stream_exists) {
-               if (!(access_mask & SEC_FILE_WRITE_ATTRIBUTE)) {
-                       return NT_STATUS_ACCESS_DENIED;
-               }
                status = pvfs_stream_create(pvfs, f->handle->name, fd);
                if (!NT_STATUS_IS_OK(status)) {
                        talloc_free(lck);