1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

s3: libsmb: Change cli_setfileinfo_ext() and async version to take a uint32_t attr.

Fix all callers.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Jeremy Allison 2020-06-03 20:58:06 -07:00
parent 39b42f04d6
commit 98d5efd3fd
3 changed files with 6 additions and 6 deletions

View 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;

View 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,

View 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;
}