From: David Disseldorp <ddiss@suse.de>
To: autofs@vger.kernel.org
Cc: "Bernhard M. Wiedemann" <bwiedemann@suse.de>,
David Disseldorp <ddiss@suse.de>
Subject: [PATCH] Avoid year-2038-problem
Date: Mon, 11 May 2026 21:05:41 +1000 [thread overview]
Message-ID: <20260511110541.27522-1-ddiss@suse.de> (raw)
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
This patch was done while reviewing potential year-2038 issues in openSUSE.
Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
Reviewed-by: David Disseldorp <ddiss@suse.de>
---
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
reply other threads:[~2026-05-11 11:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260511110541.27522-1-ddiss@suse.de \
--to=ddiss@suse.de \
--cc=autofs@vger.kernel.org \
--cc=bwiedemann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.