summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2008-08-27 10:38:18 +0200
committerKarolin Seeger <kseeger@samba.org>2008-08-27 10:38:18 +0200
commit6ee615d191c6ffa97bb27c52ae3cdb2e87a15a9a (patch)
tree0860a3ae0c1a82804018cf3e0d833907a23b532c
parent51828872b5b90cdbb800db0462a0d75b68e104a4 (diff)
downloadsamba-6ee615d191c6ffa97bb27c52ae3cdb2e87a15a9a.tar.gz
Revert "smbd: fix the handling of create_options to pass RAW-OPEN"
This reverts commit ebd1f8f9297b31353d094ddccc320a83f02877ce.
-rw-r--r--source/include/smb.h15
-rw-r--r--source/smbd/nttrans.c12
-rw-r--r--source/smbd/open.c5
3 files changed, 4 insertions, 28 deletions
diff --git a/source/include/smb.h b/source/include/smb.h
index 3c7058fc29d..cef6819979a 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -1377,19 +1377,12 @@ struct bitmap {
#define FILE_DELETE_ON_CLOSE 0x1000
#define FILE_OPEN_BY_FILE_ID 0x2000
-#define NTCREATEX_OPTIONS_MUST_IGNORE_MASK (0x008F0480)
-
-#define NTCREATEX_OPTIONS_INVALID_PARAM_MASK (0xFF100030)
-
-/*
- * Private create options used by the ntcreatex processing code. From Samba4.
- * We reuse some ignored flags for private use.
- */
-#define NTCREATEX_OPTIONS_PRIVATE_DENY_DOS 0x00010000
-#define NTCREATEX_OPTIONS_PRIVATE_DENY_FCB 0x00020000
+/* Private create options used by the ntcreatex processing code. From Samba4. */
+#define NTCREATEX_OPTIONS_PRIVATE_DENY_DOS 0x01000000
+#define NTCREATEX_OPTIONS_PRIVATE_DENY_FCB 0x02000000
/* Private options for streams support */
-#define NTCREATEX_OPTIONS_PRIVATE_STREAM_DELETE 0x00040000
+#define NTCREATEX_OPTIONS_PRIVATE_STREAM_DELETE 0x04000000
/* Responses when opening a file. */
#define FILE_WAS_SUPERSEDED 0
diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c
index 0b48fa2c4d5..ae7bd8b7b72 100644
--- a/source/smbd/nttrans.c
+++ b/source/smbd/nttrans.c
@@ -490,12 +490,6 @@ void reply_ntcreate_and_X(struct smb_request *req)
fname));
/*
- * we need to remove ignored bits when they come directly from the client
- * because we reuse some of them for internal stuff
- */
- create_options &= ~NTCREATEX_OPTIONS_MUST_IGNORE_MASK;
-
- /*
* If it's an IPC, use the pipe handler.
*/
@@ -905,12 +899,6 @@ static void call_nt_transact_create(connection_struct *conn,
allocation_size |= (((SMB_BIG_UINT)IVAL(params,16)) << 32);
#endif
- /*
- * we need to remove ignored bits when they come directly from the client
- * because we reuse some of them for internal stuff
- */
- create_options &= ~NTCREATEX_OPTIONS_MUST_IGNORE_MASK;
-
/* Ensure the data_len is correct for the sd and ea values given. */
if ((ea_len + sd_len > data_count)
|| (ea_len > data_count) || (sd_len > data_count)
diff --git a/source/smbd/open.c b/source/smbd/open.c
index ea10cdc5799..2184e69d374 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -2614,11 +2614,6 @@ NTSTATUS create_file_unixpath(connection_struct *conn,
goto fail;
}
- if (create_options & NTCREATEX_OPTIONS_INVALID_PARAM_MASK) {
- status = NT_STATUS_INVALID_PARAMETER;
- goto fail;
- }
-
if (req == NULL) {
oplock_request |= INTERNAL_OPEN_ONLY;
}