s3: libsmb: Change cli_setfileinfo_ext() and async version to take a uint32_t attr.
authorJeremy Allison <jra@samba.org>
Thu, 4 Jun 2020 03:58:06 +0000 (20:58 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 4 Jun 2020 17:11:38 +0000 (17:11 +0000)
Fix all callers.

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

index ab7e085e80c97242eed8da79c70c42b4ad239294..65d3afbcaac852ea2b5a83715db9318cd2b73d24 100644 (file)
@@ -781,7 +781,7 @@ struct tevent_req *cli_setfileinfo_ext_send(
        struct timespec access_time,
        struct timespec write_time,
        struct timespec change_time,
-       uint16_t attr)
+       uint32_t attr)
 {
        struct tevent_req *req = NULL, *subreq = NULL;
        struct cli_setfileinfo_ext_state *state = NULL;
@@ -797,7 +797,7 @@ struct tevent_req *cli_setfileinfo_ext_send(
                access_time,
                write_time,
                change_time,
-               (uint32_t)attr);
+               attr);
 
        if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
                state->in_data = (DATA_BLOB) {
@@ -860,7 +860,7 @@ NTSTATUS cli_setfileinfo_ext(
        struct timespec access_time,
        struct timespec write_time,
        struct timespec change_time,
-       uint16_t attr)
+       uint32_t attr)
 {
        TALLOC_CTX *frame = NULL;
        struct tevent_context *ev = NULL;
index 170876160a8e3a77c0838ebd78579b49b6f379c1..73388f2d268cf32c870f97b616743af4162e9b6e 100644 (file)
@@ -72,7 +72,7 @@ struct tevent_req *cli_setfileinfo_ext_send(
        struct timespec access_time,
        struct timespec write_time,
        struct timespec change_time,
-       uint16_t attr);
+       uint32_t attr);
 NTSTATUS cli_setfileinfo_ext_recv(struct tevent_req *req);
 NTSTATUS cli_setfileinfo_ext(
        struct cli_state *cli,
@@ -81,7 +81,7 @@ NTSTATUS cli_setfileinfo_ext(
        struct timespec access_time,
        struct timespec write_time,
        struct timespec change_time,
-       uint16_t attr);
+       uint32_t attr);
 struct tevent_req *cli_qpathinfo2_send(TALLOC_CTX *mem_ctx,
                                       struct tevent_context *ev,
                                       struct cli_state *cli,
index 63a33f880aebe8d18ef5c396cfa1ce6d80b0f205..0ae75bb4f7b2e23223af989743a5b0ebfb4299f7 100644 (file)
@@ -108,7 +108,7 @@ static void create_ts_opened(struct tevent_req *subreq)
                (struct timespec) { .tv_nsec = SAMBA_UTIME_OMIT }, /* access */
                mtime,
                (struct timespec) { .tv_nsec = SAMBA_UTIME_OMIT }, /* change */
-               UINT16_MAX);    /* mode */
+               UINT32_MAX);    /* attr */
        if (tevent_req_nomem(subreq, req)) {
                return;
        }