From: Derrell Lipman Date: Wed, 30 Mar 2005 02:35:31 +0000 (+0000) Subject: r6125: smbc_stat() returned incorrect timestamps IFF it used cli_qpathinfo2() to X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5011 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=443d8df94c2937b7d458b7228bdc1d433581558a;p=thirdparty%2Fsamba.git 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(). --- diff --git a/source/libsmb/clirap.c b/source/libsmb/clirap.c index 1f6a99d4bee..06b683b0385 100644 --- a/source/libsmb/clirap.c +++ b/source/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);