Skip to content

Commit

Permalink
libsmb: Use SMB2_0_INFO_FILE instead of the raw "1"
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Lendecke <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
vlendec authored and jrasamba committed May 14, 2024
1 parent 4eac401 commit af4bb5f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions source3/libsmb/clirap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1351,16 +1351,16 @@ struct tevent_req *cli_qfileinfo_basic_send(

if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
subreq = cli_smb2_query_info_fnum_send(
state, /* mem_ctx */
ev, /* ev */
cli, /* cli */
fnum, /* fnum */
1, /* in_info_type */
(SMB_FILE_ALL_INFORMATION - 1000), /* in_file_info_class */
0xFFFF, /* in_max_output_length */
NULL, /* in_input_buffer */
0, /* in_additional_info */
0); /* in_flags */
state, /* mem_ctx */
ev, /* ev */
cli, /* cli */
fnum, /* fnum */
SMB2_0_INFO_FILE, /* in_info_type */
FSCC_FILE_ALL_INFORMATION, /* in_file_info_class */
0xFFFF, /* in_max_output_length */
NULL, /* in_input_buffer */
0, /* in_additional_info */
0); /* in_flags */
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
}
Expand Down

0 comments on commit af4bb5f

Please sign in to comment.