summaryrefslogtreecommitdiff
path: root/source3/libsmb/clilist.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-08-23 22:33:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:47 -0500
commitaee6b5942a3418b9d9a9a73fa33c21d5e4e18df8 (patch)
tree43ec6a3cd1b0a7c5664addc495e0975bd836a60b /source3/libsmb/clilist.c
parentfddeed8adba8004e4bb5678e07461382f6a5124b (diff)
downloadsamba-aee6b5942a3418b9d9a9a73fa33c21d5e4e18df8.tar.gz
samba-aee6b5942a3418b9d9a9a73fa33c21d5e4e18df8.tar.bz2
samba-aee6b5942a3418b9d9a9a73fa33c21d5e4e18df8.zip
r17761: Handle times consistently across all client utils.
Fixes bugs reported in libsmbclient. Jeremy. (This used to be commit 42a417fb75313b093948602c3be8e2f386048b5f)
Diffstat (limited to 'source3/libsmb/clilist.c')
-rw-r--r--source3/libsmb/clilist.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c
index a006c47ae0..b022a107d0 100644
--- a/source3/libsmb/clilist.c
+++ b/source3/libsmb/clilist.c
@@ -94,27 +94,13 @@ static size_t interpret_long_filename(struct cli_state *cli, int level,char *p,f
}
p += 4; /* fileindex */
- /* these dates appear to arrive in a
- weird way. It seems to be localtime
- plus the serverzone given in the
- initial connect. This is GMT when
- DST is not in effect and one hour
- from GMT otherwise. Can this really
- be right??
-
- I suppose this could be called
- kludge-GMT. Is is the GMT you get
- by using the current DST setting on
- a different localtime. It will be
- cheap to calculate, I suppose, as
- no DST tables will be needed */
-
- finfo->ctime = interpret_long_date(p);
+ /* Offset zero is "create time", not "change time". */
p += 8;
finfo->atime = interpret_long_date(p);
p += 8;
finfo->mtime = interpret_long_date(p);
p += 8;
+ finfo->ctime = interpret_long_date(p);
p += 8;
finfo->size = IVAL2_TO_SMB_BIG_UINT(p,0);
p += 8;