mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
time.c: fix ctime which was feeded with the mtime seconds
This bug was introduced with 53a1d034f3
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>
This commit is contained in:
parent
1a89b5237b
commit
2df2e34c3c
@ -1446,7 +1446,7 @@ struct timespec get_ctimespec(const struct stat *pst)
|
||||
{
|
||||
struct timespec ret;
|
||||
|
||||
ret.tv_sec = pst->st_mtime;
|
||||
ret.tv_sec = pst->st_ctime;
|
||||
ret.tv_nsec = get_ctimensec(pst);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user