From d276658b74ff4090039c4e38cfa2db3cadbc920c Mon Sep 17 00:00:00 2001 From: usertam Date: Mon, 9 Jun 2025 19:12:41 +0800 Subject: [PATCH] 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. --- src/libfaketime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libfaketime.c b/src/libfaketime.c index 4133173..8e6496a 100644 --- a/src/libfaketime.c +++ b/src/libfaketime.c @@ -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 }