From: Fredrik Tolf Date: Wed, 21 Jan 2026 18:32:32 +0000 (+0100) Subject: sendfile: Properly update lastclean timestamp. X-Git-Url: http://www.dolda2000.com/gitweb/?a=commitdiff_plain;h=3c20c1b9b3cb3270c1ffb786b4c477183675cb3e;p=ashd.git sendfile: Properly update lastclean timestamp. --- 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) {