diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-12-18 14:57:11 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-12-19 12:46:24 +0100 |
commit | 9e7c8f64cfda101496f56f5546097221e8ad5d6a (patch) | |
tree | c5b2461e3238391d192e7d1984dfd9a4cd6b9761 /src | |
parent | Merge pull request #14388 from anitazha/man_uid_updates (diff) | |
download | systemd-9e7c8f64cfda101496f56f5546097221e8ad5d6a.tar.xz systemd-9e7c8f64cfda101496f56f5546097221e8ad5d6a.zip |
time-util: also use 32bit hack on EOVERFLOW
As per
https://github.com/systemd/systemd/issues/14362#issuecomment-566722686
let's also prepare for EOVERFLOW.
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/time-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/time-util.c b/src/basic/time-util.c index 753f8d5174..105584e2e7 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -1514,7 +1514,7 @@ int time_change_fd(void) { * See: https://github.com/systemd/systemd/issues/14362 */ #if SIZEOF_TIME_T == 8 && ULONG_MAX < UINT64_MAX - if (ERRNO_IS_NOT_SUPPORTED(errno)) { + if (ERRNO_IS_NOT_SUPPORTED(errno) || errno == EOVERFLOW) { static const struct itimerspec its32 = { .it_value.tv_sec = INT32_MAX, }; |