From 8eccfbea7dc4ab7de7fe41d1a844f1eaaf2f64fd Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Tue, 26 Nov 2024 19:32:00 +0100 Subject: [PATCH] smbd: use NT_PASSTHROUGH_OFFSET in a few places Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke --- source3/include/trans2.h | 2 +- source3/smbd/smb2_getinfo.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/include/trans2.h b/source3/include/trans2.h index 69b60d8a250..52b942eb963 100644 --- a/source3/include/trans2.h +++ b/source3/include/trans2.h @@ -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. */ diff --git a/source3/smbd/smb2_getinfo.c b/source3/smbd/smb2_getinfo.c index 2a61f963516..78222270099 100644 --- a/source3/smbd/smb2_getinfo.c +++ b/source3/smbd/smb2_getinfo.c @@ -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, -- 2.47.2