Skip to content

Commit d276658

Browse files
committed
libfaketime.c: fix fake_stat64buf() again
I got the logic wrong in PR #501 in the inner `#ifndef __APPLE__`. This broke building on linux. This should fix it.
1 parent cb48e45 commit d276658

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)