summaryrefslogtreecommitdiff
path: root/source3/include/trans2.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-11 02:33:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:33 -0500
commit5214cb6782b1ac01b4b23d53478fa11ad00915fe (patch)
tree4a3e63eef3c24cf5c938c1800c3a38bf9964b09d /source3/include/trans2.h
parent8a05fe78c966bed4c1f18561bf03f9f190b36434 (diff)
downloadsamba-5214cb6782b1ac01b4b23d53478fa11ad00915fe.tar.gz
r21783: Add in the "create info" field to the reply
from POSIX_OPEN and POSIX_MKDIR as specified by Stevef in the wikki (extra 4 byte field). Also fix horrible bug in James's code (James you should review this for your Apple patch tree) where he failed to allocate the correct return memory size when returning a INFO2 struct. Added #define for the size of the INFO2 struct and made sure we allocate the correct size for return. Jeremy. (This used to be commit d88bc59cb4d5e8851b0856c67ed878ba8bd84552)
Diffstat (limited to 'source3/include/trans2.h')
-rw-r--r--source3/include/trans2.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/include/trans2.h b/source3/include/trans2.h
index be635462e1c..67a0e0fc526 100644
--- a/source3/include/trans2.h
+++ b/source3/include/trans2.h
@@ -498,6 +498,8 @@ findfirst/findnext is SMB_FIND_FILE_UNIX_INFO2.
#define SMB_FIND_FILE_UNIX 0x202
#define SMB_FIND_FILE_UNIX_INFO2 0x20B /* UNIX File Info2 */
+#define SMB_FILE_UNIX_INFO2_SIZE 116
+
/*
Info level for TRANS2_QFSINFO - returns version of CIFS UNIX extensions, plus
64-bits worth of capability fun :-).
@@ -727,7 +729,11 @@ enum smb_whoami_flags {
#define SMB_NO_INFO_LEVEL_RETURNED 0xFFFF
/*
- [2 bytes] reply info level - as requested or 0xFFFF if not available.
+ [2 bytes] - flags field. Identical to flags reply for oplock response field in SMBNTCreateX)
+ [2 bytes] - FID returned.
+ [4 bytes] - CreateAction (same as in NTCreateX response).
+ [2 bytes] - reply info level - as requested or 0xFFFF if not available.
+ [2 bytes] - padding (must be zero)
[n bytes] - info level reply - if available.
*/