s4:ntvfs/cifs/: s/private/p
[jra/samba/.git] / source4 / ntvfs / ntvfs_generic.c
index c34bb7125e6834dd8cc1f00c3fd6b3207fa4cc56..b03d57166bba0dcad8ad56294abc15ade7605662 100644 (file)
@@ -281,6 +281,8 @@ static NTSTATUS map_openx_open(uint16_t flags, uint16_t open_mode,
                               uint16_t open_func, const char *fname,
                               union smb_open *io2)
 {
+       io2->generic.in.create_options = NTCREATEX_OPTIONS_NON_DIRECTORY_FILE;
+
        if (flags & OPENX_FLAGS_REQUEST_OPLOCK) {
                io2->generic.in.flags |= NTCREATEX_FLAGS_REQUEST_OPLOCK;
        }
@@ -533,6 +535,8 @@ NTSTATUS ntvfs_map_open(struct ntvfs_module_context *ntvfs,
 
                /* we need to check these bits before we check the private mask */
                if (io2->generic.in.create_options & SMB2_CREATE_OPTIONS_NOT_SUPPORTED_MASK) {
+                       DEBUG(2,(__location__ " create_options 0x%x not supported\n",
+                                io2->generic.in.create_options));
                        status = NT_STATUS_NOT_SUPPORTED;
                        break;
                }