clifuse: Use direct FSCC info level
authorVolker Lendecke <vl@samba.org>
Mon, 21 Aug 2023 19:34:31 +0000 (21:34 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 22 Aug 2023 16:45:31 +0000 (16:45 +0000)
Avoid the magic -1000

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
examples/fuse/clifuse.c

index 94ec3911ef65b22563ebd322563fee77cceec433..890dae163078484e4c7613936826c35ecb2f4102 100644 (file)
@@ -284,14 +284,18 @@ static void cli_get_unixattr_opened(struct tevent_req *subreq)
        }
 
        subreq = smb2cli_query_info_send(
-               state, state->ev, cli->conn, 0,
-               cli->smb2.session, cli->smb2.tcon,
-               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,
+               state->ev,
+               cli->conn,
+               0,
+               cli->smb2.session,
+               cli->smb2.tcon,
+               1,                         /* 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 */
                state->fid_persistent,
                state->fid_volatile);
        if (tevent_req_nomem(subreq, req)) {