summaryrefslogtreecommitdiffstats
path: root/source/libsmb/clirap.c
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2005-03-30 02:35:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:23 -0500
commit443d8df94c2937b7d458b7228bdc1d433581558a (patch)
treeb7338d5a2fdf5b15b4c3f4943df083e5a731d05a /source/libsmb/clirap.c
parentb42eaf424e34544fae3f0fc473694e61dda2a11c (diff)
downloadsamba-443d8df94c2937b7d458b7228bdc1d433581558a.tar.gz
samba-443d8df94c2937b7d458b7228bdc1d433581558a.tar.xz
samba-443d8df94c2937b7d458b7228bdc1d433581558a.zip
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().
Diffstat (limited to 'source/libsmb/clirap.c')
-rw-r--r--source/libsmb/clirap.c8
1 files changed, 4 insertions, 4 deletions
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);