summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2005-05-12 12:50:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:53 -0500
commitd5e18ed8fdd114baa6e0060447dd46ae9fe3066a (patch)
tree218dfde0b2a372fcb05abb395f43f35593965b4d
parent848cec55a0001866289148ea84175378ba6578f0 (diff)
downloadsamba-d5e18ed8fdd114baa6e0060447dd46ae9fe3066a.tar.gz
samba-d5e18ed8fdd114baa6e0060447dd46ae9fe3066a.tar.bz2
samba-d5e18ed8fdd114baa6e0060447dd46ae9fe3066a.zip
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 9144778d09c1650a775fdd08767ac65189fad457)
-rw-r--r--source3/libsmb/clifile.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index 5304f5d8cf..90ca98d17e 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -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;