[PATCH] Avoid year-2038-problem
David Disseldorp <[email protected]> Mon, 11 May 2026 21:05:41 +1000
| Newsgroups | org.kernel.vger.autofs |
|---|---|
| Message-ID | <[email protected]> |
From: "Bernhard M. Wiedemann" <[email protected]> This patch was done while reviewing potential year-2038 issues in openSUSE. Signed-off-by: Bernhard M. Wiedemann <[email protected]> Reviewed-by: David Disseldorp <[email protected]> --- daemon/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/state.c b/daemon/state.c index 317b8ca9..e16c0703 100644 --- a/daemon/state.c +++ b/daemon/state.c @@ -514,7 +514,7 @@ static unsigned int st_readmap(struct autofs_point *ap) pthread_t thid; struct readmap_args *ra; int status; - int now = monotonic_time(NULL); + time_t now = monotonic_time(NULL); debug(ap->logopt, "state %d path %s", ap->state, ap->path); -- 2.51.0