Skip to content

Commit

Permalink
time-util: also use 32bit hack on EOVERFLOW
Browse files Browse the repository at this point in the history
As per
#14362 (comment)
let's also prepare for EOVERFLOW.
  • Loading branch information
poettering committed Dec 19, 2019
1 parent 17ef83b commit 9e7c8f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic/time-util.c
Expand Up @@ -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,
};
Expand Down

0 comments on commit 9e7c8f6

Please sign in to comment.