git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85f7d9d
)
system.c: fix fake directory create times
author
Bjoern Jacke
<bj@sernet.de>
Mon, 8 Jan 2024 15:04:12 +0000
(15:04 +0000)
committer
Volker Lendecke
<vl@samba.org>
Tue, 16 Jan 2024 14:37:31 +0000
(14:37 +0000)
This was broken by
c9c3d4312d7281904fc
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>
source3/lib/system.c
patch
|
blob
|
history
diff --git
a/source3/lib/system.c
b/source3/lib/system.c
index 721ffd17f884798f96aa9af74601b4b5016633d2..18dc6989372e75557ecf420b1e4156b100dbcc11 100644
(file)
--- a/
source3/lib/system.c
+++ b/
source3/lib/system.c
@@
-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) {
dst->st_ex_btime.tv_sec = 315493200L; /* 1/1/1980 */
dst->st_ex_btime.tv_nsec = 0;
+ return;
}
dst->st_ex_iflags &= ~ST_EX_IFLAG_CALCULATED_BTIME;