From 1635d50a20fb03b402465731494826471efc8f88 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Wed, 30 Mar 2005 02:35:31 +0000 Subject: r6125: smbc_stat() returned incorrect timestamps IFF it used cli_qpathinfo2() to retrieve the timestamps (Win2k) and not if it used cli-getatr() to retrieve the timestamps (Win98). Timestamps are supposed to be in GMT, and should not have serverzone deducted from them in cli_qpathinfo2(). (This used to be commit 443d8df94c2937b7d458b7228bdc1d433581558a) --- source3/libsmb/clirap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c index 1f6a99d4be..06b683b038 100644 --- a/source3/libsmb/clirap.c +++ b/source3/libsmb/clirap.c @@ -501,16 +501,16 @@ BOOL cli_qpathinfo2(struct cli_state *cli, const char *fname, } if (c_time) { - *c_time = interpret_long_date(rdata+0) - cli->serverzone; + *c_time = interpret_long_date(rdata+0); } if (a_time) { - *a_time = interpret_long_date(rdata+8) - cli->serverzone; + *a_time = interpret_long_date(rdata+8); } if (m_time) { - *m_time = interpret_long_date(rdata+16) - cli->serverzone; + *m_time = interpret_long_date(rdata+16); } if (w_time) { - *w_time = interpret_long_date(rdata+24) - cli->serverzone; + *w_time = interpret_long_date(rdata+24); } if (mode) { *mode = SVAL(rdata, 32); -- cgit