mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
s3: libsmb: Change cli_smb2_setatr() to use 32-bit attributes.
The SMB_SET_FILE_BASIC_INFO info level this uses in SMB2 sets 32-bit attributes, so don't use SSVAL, use SIVAL. No change needed in callers as implicit casts work fine. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
30b3475f4a
commit
2d6b1ef790
@ -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);
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user