From 5214cb6782b1ac01b4b23d53478fa11ad00915fe Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 11 Mar 2007 02:33:17 +0000 Subject: 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) --- source3/include/trans2.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source3/include') diff --git a/source3/include/trans2.h b/source3/include/trans2.h index be635462e1..67a0e0fc52 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. */ -- cgit