mirror of
https://github.com/wolfcw/libfaketime.git
synced 2026-05-17 00:26:16 +03:00
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.
This commit is contained in:
@@ -995,9 +995,9 @@ static inline void fake_stat64buf (struct stat64 *buf) {
|
||||
unlock_for_stat();
|
||||
#else
|
||||
lock_for_stat();
|
||||
fake_clock_gettime(CLOCK_REALTIME, &buf->st_ctimespec);
|
||||
fake_clock_gettime(CLOCK_REALTIME, &buf->st_atimespec);
|
||||
fake_clock_gettime(CLOCK_REALTIME, &buf->st_mtimespec);
|
||||
fake_clock_gettime(CLOCK_REALTIME, &buf->st_ctim);
|
||||
fake_clock_gettime(CLOCK_REALTIME, &buf->st_atim);
|
||||
fake_clock_gettime(CLOCK_REALTIME, &buf->st_mtim);
|
||||
unlock_for_stat();
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user