From 3c20c1b9b3cb3270c1ffb786b4c477183675cb3e Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 21 Jan 2026 19:32:32 +0100 Subject: [PATCH] sendfile: Properly update lastclean timestamp. --- src/compress.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compress.c b/src/compress.c index 6154687..e1f05fa 100644 --- a/src/compress.c +++ b/src/compress.c @@ -26,6 +26,7 @@ #include #include #include +#include #ifdef HAVE_CONFIG_H #include @@ -160,8 +161,10 @@ static void checkclean(void) } } close(fd); - if((fd = open(sprintf3("%s/lastclean", cachedir()), O_WRONLY | O_CREAT, 0600)) >= 0) + if((fd = open(sprintf3("%s/lastclean", cachedir()), O_WRONLY | O_CREAT, 0600)) >= 0) { + futimes(fd, NULL);; close(fd); + } if((dp = opendir(cachedir())) == NULL) return; while((ent = readdir(dp)) != NULL) { -- 2.39.5