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:
df02559
)
time.c: fix ctime which was feeded with the mtime seconds
author
Björn Jacke
<bjacke@samba.org>
Sun, 7 Jan 2024 04:09:58 +0000
(
05:09
+0100)
committer
Jule Anger
<janger@samba.org>
Mon, 22 Jan 2024 09:55:16 +0000
(09:55 +0000)
This bug was introduced with
53a1d034f3e47ed3c
in 2020.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15550
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit
2df2e34c3c1ccf76bbcc78586cbbb6433b6d30d5
)
lib/util/time.c
patch
|
blob
|
history
diff --git
a/lib/util/time.c
b/lib/util/time.c
index c2a77d664d37a21107134cf81950d4389d2ebbda..9393a754d7356ea31f651b4d40fc03c594f3a641 100644
(file)
--- a/
lib/util/time.c
+++ b/
lib/util/time.c
@@
-1450,7
+1450,7
@@
struct timespec get_ctimespec(const struct stat *pst)
{
struct timespec ret;
- ret.tv_sec = pst->st_
m
time;
+ ret.tv_sec = pst->st_
c
time;
ret.tv_nsec = get_ctimensec(pst);
return ret;
}