From ed8a737e087424fa34b8df34e5888c8a85fabc27 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 19 Jan 2025 11:55:54 +0900 Subject: [PATCH] core: use usec_add() at one more place Follow-up for 8af1b296cb2cec8ddbb2cb47f4194269eb6cee2b. Fixes CID#1590317. --- src/core/exec-invoke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3