mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
system.c: fix fake directory create times
This was broken by c9c3d4312d
back in 2009 already.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12421
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
85f7d9d5b9
commit
56c3dbc2ff
@ -186,6 +186,7 @@ static void make_create_timespec(const struct stat *pst, struct stat_ex *dst,
|
|||||||
if (S_ISDIR(pst->st_mode) && fake_dir_create_times) {
|
if (S_ISDIR(pst->st_mode) && fake_dir_create_times) {
|
||||||
dst->st_ex_btime.tv_sec = 315493200L; /* 1/1/1980 */
|
dst->st_ex_btime.tv_sec = 315493200L; /* 1/1/1980 */
|
||||||
dst->st_ex_btime.tv_nsec = 0;
|
dst->st_ex_btime.tv_nsec = 0;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
dst->st_ex_iflags &= ~ST_EX_IFLAG_CALCULATED_BTIME;
|
dst->st_ex_iflags &= ~ST_EX_IFLAG_CALCULATED_BTIME;
|
||||||
|
Loading…
Reference in New Issue
Block a user