diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c index 1aa50c31107..0681858e73e 100644 --- a/source3/libsmb/cli_smb2_fnum.c +++ b/source3/libsmb/cli_smb2_fnum.c @@ -2420,7 +2420,7 @@ NTSTATUS cli_smb2_setpathinfo(struct cli_state *cli, NTSTATUS cli_smb2_setatr(struct cli_state *cli, const char *name, - uint16_t attr, + uint32_t attr, time_t mtime) { uint8_t inbuf_store[40]; @@ -2456,7 +2456,7 @@ NTSTATUS cli_smb2_setatr(struct cli_state *cli, attr = 0; } - SSVAL(inbuf.data, 32, attr); + SIVAL(inbuf.data, 32, attr); if (mtime != 0) { put_long_date((char *)inbuf.data + 16,mtime); } diff --git a/source3/libsmb/cli_smb2_fnum.h b/source3/libsmb/cli_smb2_fnum.h index 7a983f5266c..95687f74e7f 100644 --- a/source3/libsmb/cli_smb2_fnum.h +++ b/source3/libsmb/cli_smb2_fnum.h @@ -197,7 +197,7 @@ NTSTATUS cli_smb2_setpathinfo(struct cli_state *cli, const DATA_BLOB *p_in_data); NTSTATUS cli_smb2_setatr(struct cli_state *cli, const char *fname, - uint16_t attr, + uint32_t attr, time_t mtime); NTSTATUS cli_smb2_setattrE(struct cli_state *cli, uint16_t fnum,