]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use NT_PASSTHROUGH_OFFSET in a few places
authorRalph Boehme <slow@samba.org>
Tue, 26 Nov 2024 18:32:00 +0000 (19:32 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 27 Nov 2024 18:22:28 +0000 (18:22 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/include/trans2.h
source3/smbd/smb2_getinfo.c

index 69b60d8a25015e70b3174a1e148f98862cab9bbf..52b942eb96327b0e69e0359055ce721aae91a229 100644 (file)
@@ -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. */
 
index 2a61f9635162e04e80d1797b490b2e0ea5e50449..78222270099852fc69d9f74d4ca264bc9dade954 100644 (file)
@@ -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,