r6125: smbc_stat() returned incorrect timestamps IFF it used cli_qpathinfo2() to
authorDerrell Lipman <derrell@samba.org>
Wed, 30 Mar 2005 02:35:31 +0000 (02:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:23 +0000 (10:56 -0500)
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

index 1f6a99d4bee4269de2cb62ad77b4bc6be85bf3ba..06b683b0385df18811808059ec8acb9dc6a797d8 100644 (file)
@@ -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);