summaryrefslogtreecommitdiff
path: root/source3/libsmb
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
commit1635d50a20fb03b402465731494826471efc8f88 (patch)
treea228b5929fcad3a23fe9c0e72aab4b58ee1903bb /source3/libsmb
parent7dcc247164f53e6a8b36c4024a88fb3759c06b4d (diff)
downloadsamba-1635d50a20fb03b402465731494826471efc8f88.tar.gz
samba-1635d50a20fb03b402465731494826471efc8f88.tar.bz2
samba-1635d50a20fb03b402465731494826471efc8f88.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(). (This used to be commit 443d8df94c2937b7d458b7228bdc1d433581558a)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clirap.c8
1 files 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);