From 1776918c5bf2e6db4ab9072e09326b91fa211322 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 8 May 2024 16:05:40 +0200 Subject: [PATCH] libsmb: Use the direct FSCC_FILE_ALL_INFORMATION define (SMB_FILE_ALL_INFORMATION - 1000) looks a bit silly if you look at the definition of SMB_FILE_ALL_INFORMATION... Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/torture/test_smb2.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c index 3b2e1e4811d..29d2b65f2a4 100644 --- a/source3/torture/test_smb2.c +++ b/source3/torture/test_smb2.c @@ -3951,20 +3951,21 @@ static NTSTATUS get_smb2_inode(struct cli_state *cli, /* * Get the inode. */ - status = smb2cli_query_info(cli->conn, - cli->timeout, - cli->smb2.session, - cli->smb2.tcon, - SMB2_0_INFO_FILE, - (SMB_FILE_ALL_INFORMATION - 1000), /* in_file_info_class */ - 1024, /* in_max_output_length */ - NULL, /* in_input_buffer */ - 0, /* in_additional_info */ - 0, /* in_flags */ - fid_persistent, - fid_volatile, - talloc_tos(), - &outbuf); + status = smb2cli_query_info( + cli->conn, + cli->timeout, + cli->smb2.session, + cli->smb2.tcon, + SMB2_0_INFO_FILE, + FSCC_FILE_ALL_INFORMATION, /* in_file_info_class */ + 1024, /* in_max_output_length */ + NULL, /* in_input_buffer */ + 0, /* in_additional_info */ + 0, /* in_flags */ + fid_persistent, + fid_volatile, + talloc_tos(), + &outbuf); if (NT_STATUS_IS_OK(status)) { *ino_ret = PULL_LE_U64(outbuf.data, 0x40); -- 2.47.3