]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: Make cli_list_trans() and cli_list take a 32-bit attribute.
authorJeremy Allison <jra@samba.org>
Wed, 3 Jun 2020 21:07:21 +0000 (14:07 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 4 Jun 2020 17:11:38 +0000 (17:11 +0000)
All sub-functions take 32-bits, and all callers now are
compatible with 32-bit attributes.

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

index b453900b3f40d9ac1e3b94fe5a5424bc9df75fd3..3a0c10e55b0eb2658c15642a595b68f30d2a992d 100644 (file)
@@ -617,7 +617,7 @@ struct cli_list_trans_state {
        struct tevent_context *ev;
        struct cli_state *cli;
        char *mask;
-       uint16_t attribute;
+       uint32_t attribute;
        uint16_t info_level;
 
        int loop_count;
@@ -640,7 +640,7 @@ static struct tevent_req *cli_list_trans_send(TALLOC_CTX *mem_ctx,
                                              struct tevent_context *ev,
                                              struct cli_state *cli,
                                              const char *mask,
-                                             uint16_t attribute,
+                                             uint32_t attribute,
                                              uint16_t info_level)
 {
        struct tevent_req *req, *subreq;
@@ -921,7 +921,7 @@ static NTSTATUS cli_list_trans_recv(struct tevent_req *req,
 }
 
 NTSTATUS cli_list_trans(struct cli_state *cli, const char *mask,
-                       uint16_t attribute, int info_level,
+                       uint32_t attribute, int info_level,
                        NTSTATUS (*fn)(const char *mnt, struct file_info *finfo,
                                   const char *mask, void *private_data),
                        void *private_data)
@@ -979,7 +979,7 @@ struct tevent_req *cli_list_send(TALLOC_CTX *mem_ctx,
                                 struct tevent_context *ev,
                                 struct cli_state *cli,
                                 const char *mask,
-                                uint16_t attribute,
+                                uint32_t attribute,
                                 uint16_t info_level)
 {
        struct tevent_req *req, *subreq;
@@ -1037,7 +1037,7 @@ NTSTATUS cli_list_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
-NTSTATUS cli_list(struct cli_state *cli, const char *mask, uint16_t attribute,
+NTSTATUS cli_list(struct cli_state *cli, const char *mask, uint32_t attribute,
                  NTSTATUS (*fn)(const char *, struct file_info *, const char *,
                             void *), void *state)
 {
index 734f4749b5b7f9fc09e4033191ff594209fef5ee..bbc3d6efa03c02cd8d342cc6db9bc34d04b14678 100644 (file)
@@ -759,7 +759,7 @@ 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,
-                       uint16_t attribute, int info_level,
+                       uint32_t attribute, int info_level,
                        NTSTATUS (*fn)(const char *mnt, struct file_info *finfo,
                                   const char *mask, void *private_data),
                        void *private_data);
@@ -767,11 +767,11 @@ struct tevent_req *cli_list_send(TALLOC_CTX *mem_ctx,
                                 struct tevent_context *ev,
                                 struct cli_state *cli,
                                 const char *mask,
-                                uint16_t attribute,
+                                uint32_t attribute,
                                 uint16_t info_level);
 NTSTATUS cli_list_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
                       struct file_info **finfo, size_t *num_finfo);
-NTSTATUS cli_list(struct cli_state *cli,const char *Mask,uint16_t attribute,
+NTSTATUS cli_list(struct cli_state *cli,const char *Mask,uint32_t attribute,
                  NTSTATUS (*fn)(const char *, struct file_info *, const char *,
                             void *), void *state);