mirror of
https://github.com/wolfcw/libfaketime.git
synced 2026-05-17 00:26:16 +03:00
Merge pull request #312 from dkg/avoid-diversion
Pass through syscall(__NR_clock_gettime) if FAKERANDOM is unset
This commit is contained in:
@@ -3772,7 +3772,7 @@ long syscall(long number, ...) {
|
||||
}
|
||||
#endif
|
||||
// static int (*real_clock_gettime) (clockid_t clk_id, struct timespec *tp);
|
||||
if (number == __NR_clock_gettime) {
|
||||
if (number == __NR_clock_gettime && getenv("FAKETIME")) {
|
||||
clockid_t clk_id;
|
||||
struct timespec *tp;
|
||||
clk_id = va_arg(ap, clockid_t);
|
||||
|
||||
Reference in New Issue
Block a user