s3: libsmb: Change cli_unlink() and async version to take a uint32_t attribute.
authorJeremy Allison <jra@samba.org>
Thu, 4 Jun 2020 04:03:39 +0000 (21:03 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 4 Jun 2020 17:11:39 +0000 (17:11 +0000)
Fix the callers.

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

index 5ae7779192c2aa81baf89c54ebf752102089731b..65891e0e6a1fc1dd62c183c57ac153e1313c9cc0 100644 (file)
@@ -1868,7 +1868,7 @@ struct tevent_req *cli_unlink_send(TALLOC_CTX *mem_ctx,
                                struct tevent_context *ev,
                                struct cli_state *cli,
                                const char *fname,
-                               uint16_t mayhave_attrs)
+                               uint32_t mayhave_attrs)
 {
        struct tevent_req *req = NULL, *subreq = NULL;
        struct cli_unlink_state *state = NULL;
@@ -1936,7 +1936,7 @@ NTSTATUS cli_unlink_recv(struct tevent_req *req)
        return tevent_req_simple_recv_ntstatus(req);
 }
 
-NTSTATUS cli_unlink(struct cli_state *cli, const char *fname, uint16_t mayhave_attrs)
+NTSTATUS cli_unlink(struct cli_state *cli, const char *fname, uint32_t mayhave_attrs)
 {
        TALLOC_CTX *frame = NULL;
        struct tevent_context *ev;
index d0d15d31b9b689a08a2e864eb6dcd8381a52c3e9..58120b06e4241f63602c8e530901caa253c1a7f3 100644 (file)
@@ -361,9 +361,9 @@ struct tevent_req *cli_unlink_send(TALLOC_CTX *mem_ctx,
                                 struct tevent_context *ev,
                                 struct cli_state *cli,
                                 const char *fname,
-                                uint16_t mayhave_attrs);
+                                uint32_t mayhave_attrs);
 NTSTATUS cli_unlink_recv(struct tevent_req *req);
-NTSTATUS cli_unlink(struct cli_state *cli, const char *fname, uint16_t mayhave_attrs);
+NTSTATUS cli_unlink(struct cli_state *cli, const char *fname, uint32_t mayhave_attrs);
 
 struct tevent_req *cli_mkdir_send(TALLOC_CTX *mem_ctx,
                                  struct tevent_context *ev,
index 006cc9078b87715585322379140b0cbfc5f4dd04..df324da7a3d67df8a9e856cd1fc7b1f9bbfb21c5 100644 (file)
@@ -1257,7 +1257,7 @@ static PyObject *py_cli_list(struct py_cli_state *self,
 static NTSTATUS unlink_file(struct py_cli_state *self, const char *filename)
 {
        NTSTATUS status;
-       uint16_t attrs = (FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN);
+       uint32_t attrs = (FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN);
        struct tevent_req *req = NULL;
 
        req = cli_unlink_send(