1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

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 d88bc59cb4)
This commit is contained in:
Jeremy Allison
2007-03-11 02:33:17 +00:00
committed by Gerald (Jerry) Carter
parent 8a05fe78c9
commit 5214cb6782
2 changed files with 39 additions and 23 deletions

View File

@ -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.
*/