mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
r17761: Handle times consistently across all client utils.
Fixes bugs reported in libsmbclient.
Jeremy.
(This used to be commit 42a417fb75
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
fddeed8adb
commit
aee6b5942a
@ -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;
|
||||
|
Reference in New Issue
Block a user