]> www.dolda2000.com Git - ashd.git/commitdiff
sendfile: Use original times for compressed variants.
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 20 Jan 2026 05:54:18 +0000 (06:54 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 20 Jan 2026 05:54:18 +0000 (06:54 +0100)
src/compress.c

index f0fb688002cd07c087789aadb976c1b38cb5ab07..e806fe3f8b31e0481ac4d8ac877bab01b3ef025a 100644 (file)
@@ -275,6 +275,9 @@ int ccopen(char *path, struct stat *sb, char *accept, const char **encoding)
                    mfd = efd;
                    minsz = esb.st_size;
                    msb = esb;
+                   msb.st_atime = sb->st_atime;
+                   msb.st_mtime = sb->st_mtime;
+                   msb.st_ctime = sb->st_ctime;
                    mtype = type;
                }
            }