mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
smbd: use NT_PASSTHROUGH_OFFSET in a few places
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
a882e86104
commit
8eccfbea7d
@ -413,7 +413,7 @@ Byte offset Type name description
|
||||
#define SMB2_FILE_FULL_EA_INFORMATION (FSCC_FILE_FULL_EA_INFORMATION + SMB2_INFO_SPECIAL)
|
||||
#define SMB2_FILE_ALL_INFORMATION (FSCC_FILE_ALL_INFORMATION + SMB2_INFO_SPECIAL)
|
||||
#define SMB2_FILE_POSIX_INFORMATION_INTERNAL (SMB2_FILE_POSIX_INFORMATION + SMB2_INFO_SPECIAL)
|
||||
#define SMB2_FS_POSIX_INFORMATION_INTERNAL 1100
|
||||
#define SMB2_FS_POSIX_INFORMATION_INTERNAL (SMB2_FS_POSIX_INFORMATION + NT_PASSTHROUGH_OFFSET)
|
||||
|
||||
/* NT passthrough levels for qfsinfo. */
|
||||
|
||||
|
@ -348,7 +348,7 @@ static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx,
|
||||
|
||||
default:
|
||||
/* the levels directly map to the passthru levels */
|
||||
file_info_level = in_file_info_class + 1000;
|
||||
file_info_level = in_file_info_class + NT_PASSTHROUGH_OFFSET;
|
||||
break;
|
||||
}
|
||||
|
||||
@ -466,7 +466,7 @@ static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx,
|
||||
size_t fixed_portion;
|
||||
|
||||
/* the levels directly map to the passthru levels */
|
||||
file_info_level = in_file_info_class + 1000;
|
||||
file_info_level = in_file_info_class + NT_PASSTHROUGH_OFFSET;
|
||||
|
||||
status = smbd_do_qfsinfo(smb2req->xconn, conn, state,
|
||||
file_info_level,
|
||||
|
Loading…
Reference in New Issue
Block a user