Skip to contentSkip to conversation

Avoid year-2038-problem

PATCH New David Disseldorp 1 participant 1 message May 11 Kernel automounter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Avoid year-2038-problem

From: "Bernhard M. Wiedemann" <[email protected]>

This patch was done while reviewing potential year-2038 issues in openSUSE.

---
 daemon/state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
daemon/state.c +1 -1
index 317b8ca9..e16c0703 100644
@@ -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);
 
Signature · 1 line
2.51.0