s3: libsmb: Make cli_list_old() take 32-bit attribute.
authorJeremy Allison <jra@samba.org>
Wed, 3 Jun 2020 20:56:37 +0000 (13:56 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 4 Jun 2020 17:11:38 +0000 (17:11 +0000)
Only uses 16 on the wire. No change needed in callers.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/libsmb/clilist.c
source3/libsmb/proto.h

index b2327ed97ad98ed413d961a7ebb55ab60524aeff..b453900b3f40d9ac1e3b94fe5a5424bc9df75fd3 100644 (file)
@@ -361,7 +361,7 @@ struct cli_list_old_state {
        uint16_t vwv[2];
        char *mask;
        int num_asked;
-       uint16_t attribute;
+       uint32_t attribute;
        uint8_t search_status[23];
        bool first;
        bool done;
@@ -374,7 +374,7 @@ static struct tevent_req *cli_list_old_send(TALLOC_CTX *mem_ctx,
                                            struct tevent_context *ev,
                                            struct cli_state *cli,
                                            const char *mask,
-                                           uint16_t attribute)
+                                           uint32_t attribute)
 {
        struct tevent_req *req, *subreq;
        struct cli_list_old_state *state;
@@ -568,7 +568,7 @@ static NTSTATUS cli_list_old_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
 }
 
 NTSTATUS cli_list_old(struct cli_state *cli, const char *mask,
-                     uint16_t attribute,
+                     uint32_t attribute,
                      NTSTATUS (*fn)(const char *, struct file_info *,
                                 const char *, void *), void *state)
 {
index c7cf3702bdeacc810aa061a1669c379f2bdd4473..734f4749b5b7f9fc09e4033191ff594209fef5ee 100644 (file)
@@ -755,7 +755,7 @@ NTSTATUS cli_posix_whoami(struct cli_state *cli,
 NTSTATUS is_bad_finfo_name(const struct cli_state *cli,
                        const struct file_info *finfo);
 
-NTSTATUS cli_list_old(struct cli_state *cli,const char *Mask,uint16_t attribute,
+NTSTATUS cli_list_old(struct cli_state *cli,const char *Mask,uint32_t attribute,
                      NTSTATUS (*fn)(const char *, struct file_info *,
                                 const char *, void *), void *state);
 NTSTATUS cli_list_trans(struct cli_state *cli, const char *mask,