mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r6753: Fixes bug 2663. cli_getattrE() and cli_setattrE() were not formatting or
parsing the timestamp values correctly. It turns out they were using the
incorrect function for formatting and parsing values. Thanks to Satwik Hebbar
for reporting this and testing the patch.
(This used to be commit 9144778d09
)
This commit is contained in:
parent
848cec55a0
commit
d5e18ed8fd
@ -1103,15 +1103,15 @@ BOOL cli_getattrE(struct cli_state *cli, int fd,
|
||||
}
|
||||
|
||||
if (c_time) {
|
||||
*c_time = make_unix_date3(cli->inbuf+smb_vwv0);
|
||||
*c_time = make_unix_date2(cli->inbuf+smb_vwv0);
|
||||
}
|
||||
|
||||
if (a_time) {
|
||||
*a_time = make_unix_date3(cli->inbuf+smb_vwv2);
|
||||
*a_time = make_unix_date2(cli->inbuf+smb_vwv2);
|
||||
}
|
||||
|
||||
if (m_time) {
|
||||
*m_time = make_unix_date3(cli->inbuf+smb_vwv4);
|
||||
*m_time = make_unix_date2(cli->inbuf+smb_vwv4);
|
||||
}
|
||||
|
||||
return True;
|
||||
@ -1186,9 +1186,9 @@ BOOL cli_setattrE(struct cli_state *cli, int fd,
|
||||
cli_setup_packet(cli);
|
||||
|
||||
SSVAL(cli->outbuf,smb_vwv0, fd);
|
||||
put_dos_date3(cli->outbuf,smb_vwv1, c_time);
|
||||
put_dos_date3(cli->outbuf,smb_vwv3, a_time);
|
||||
put_dos_date3(cli->outbuf,smb_vwv5, m_time);
|
||||
put_dos_date2(cli->outbuf,smb_vwv1, c_time);
|
||||
put_dos_date2(cli->outbuf,smb_vwv3, a_time);
|
||||
put_dos_date2(cli->outbuf,smb_vwv5, m_time);
|
||||
|
||||
p = smb_buf(cli->outbuf);
|
||||
*p++ = 4;
|
||||
|
Loading…
Reference in New Issue
Block a user