Skip to content

Commit f63569e

Browse files
authored
Merge pull request #502 from usertam/patch/fix-fake-stat64buf-on-linux
Fix fake_stat64buf() again
2 parents cb48e45 + d276658 commit f63569e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libfaketime.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -995,9 +995,9 @@ static inline void fake_stat64buf (struct stat64 *buf) {
995995
unlock_for_stat();
996996
#else
997997
lock_for_stat();
998-
fake_clock_gettime(CLOCK_REALTIME, &buf->st_ctimespec);
999-
fake_clock_gettime(CLOCK_REALTIME, &buf->st_atimespec);
1000-
fake_clock_gettime(CLOCK_REALTIME, &buf->st_mtimespec);
998+
fake_clock_gettime(CLOCK_REALTIME, &buf->st_ctim);
999+
fake_clock_gettime(CLOCK_REALTIME, &buf->st_atim);
1000+
fake_clock_gettime(CLOCK_REALTIME, &buf->st_mtim);
10011001
unlock_for_stat();
10021002
#endif
10031003
}

0 commit comments

Comments
 (0)