From: Yu Watanabe Date: Sun, 19 Jan 2025 02:55:54 +0000 (+0900) Subject: core: use usec_add() at one more place X-Git-Tag: v258-rc1~1558 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed8a737e087424fa34b8df34e5888c8a85fabc27;p=thirdparty%2Fsystemd.git core: use usec_add() at one more place Follow-up for 8af1b296cb2cec8ddbb2cb47f4194269eb6cee2b. Fixes CID#1590317. --- diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c index 7f79ae4962c..4332bd23e53 100644 --- a/src/core/exec-invoke.c +++ b/src/core/exec-invoke.c @@ -1117,7 +1117,7 @@ static int ask_password_conv( .credential = credential_name, .tty_fd = -EBADF, .hup_fd = -EBADF, - .until = now(CLOCK_MONOTONIC) + 15 * USEC_PER_SEC, + .until = usec_add(now(CLOCK_MONOTONIC), 15 * USEC_PER_SEC), }; _cleanup_(strv_free_erasep) char **acquired = NULL;