summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-02-25 02:15:20 +0000
committerJeremy Allison <jra@samba.org>2004-02-25 02:15:20 +0000
commit538633b0f8da19687b16df3d7d424227a2e0fd90 (patch)
treefbb705c29b600a4e32165038097502f93463e43e /source3
parent8d596105ad39a8af7b41eb3442ce80ecbb301573 (diff)
downloadsamba-538633b0f8da19687b16df3d7d424227a2e0fd90.tar.gz
samba-538633b0f8da19687b16df3d7d424227a2e0fd90.tar.bz2
samba-538633b0f8da19687b16df3d7d424227a2e0fd90.zip
Figured out a new flags bit with gentest and ethereal....
Jeremy. (This used to be commit 755b66303d04b73a855fa8db5fe3ae920a901bf3)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb.h1
-rw-r--r--source3/smbd/nttrans.c12
2 files changed, 11 insertions, 2 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 1bf5db4768..5cd5e71f74 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -1087,6 +1087,7 @@ struct bitmap {
#define REQUEST_OPLOCK 2
#define REQUEST_BATCH_OPLOCK 4
#define OPEN_DIRECTORY 8
+#define EXTENDED_RESPONSE_REQUIRED 0x10
/* ShareAccess field. */
#define FILE_SHARE_NONE 0 /* Cannot be used in bitmask. */
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 4e87f191d8..a8a314c876 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -975,9 +975,12 @@ create_options = 0x%x root_dir_fid = 0x%x\n", flags, desired_access, file_attrib
SOFF_T(p, 0, get_allocation_size(fsp,&sbuf));
p += 8;
SOFF_T(p,0,file_len);
- p += 12;
+ p += 8;
+ if (flags & EXTENDED_RESPONSE_REQUIRED)
+ SSVAL(p,2,0x7);
+ p += 4;
SCVAL(p,0,fsp->is_directory ? 1 : 0);
-
+
DEBUG(5,("reply_ntcreate_and_X: fnum = %d, open name = %s\n", fsp->fnum, fsp->fsp_name));
result = chain_reply(inbuf,outbuf,length,bufsize);
@@ -1455,6 +1458,11 @@ static int call_nt_transact_create(connection_struct *conn, char *inbuf, char *o
SOFF_T(p, 0, get_allocation_size(fsp,&sbuf));
p += 8;
SOFF_T(p,0,file_len);
+ p += 8;
+ if (flags & EXTENDED_RESPONSE_REQUIRED)
+ SSVAL(p,2,0x7);
+ p += 4;
+ SCVAL(p,0,fsp->is_directory ? 1 : 0);
DEBUG(5,("call_nt_transact_create: open name = %s\n", fname));