1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +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 commit is contained in:
Derrell Lipman 2005-05-12 12:50:03 +00:00 committed by Gerald (Jerry) Carter
parent 85320c1257
commit 9144778d09

View File

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