summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-06-04 12:17:37 +0200
committerStefan Metzmacher <metze@samba.org>2009-06-04 22:41:17 +0200
commit7f097368ed3c65467add701f1b3eb99081769ddb (patch)
treeb68fd85fe095c3e7c8a43ad6aff3c3c6aa23ec9e
parente545b253d805028dbe3fe2bd94189ef3b0520885 (diff)
downloadsamba-7f097368ed3c65467add701f1b3eb99081769ddb.tar.gz
samba-7f097368ed3c65467add701f1b3eb99081769ddb.tar.bz2
samba-7f097368ed3c65467add701f1b3eb99081769ddb.zip
s3:smbd: ignore NTCREATEX_OPTIONS_SYNC_ALERT and NTCREATEX_OPTIONS_ASYNC_ALERT for SMB2 Create
This should make the Windows Explorer happier. metze
-rw-r--r--source3/smbd/smb2_create.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c
index 8cd0c3bb38..0f955a4df8 100644
--- a/source3/smbd/smb2_create.c
+++ b/source3/smbd/smb2_create.c
@@ -231,6 +231,10 @@ static NTSTATUS smbd_smb2_create(struct smbd_smb2_request *req,
break;
}
+ /* these are ignored for SMB2 */
+ in_create_options &= ~(0x10);/* NTCREATEX_OPTIONS_SYNC_ALERT */
+ in_create_options &= ~(0x20);/* NTCREATEX_OPTIONS_ASYNC_ALERT */
+
status = SMB_VFS_CREATE_FILE(req->tcon->compat_conn,
smbreq,
0, /* root_dir_fid */