X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/agedu/blobdiff_plain/b02bd008c6a46bcfed857c085e4c157146bc62f1..7e25423cd18ab429b13c6e2ea920d9c44c0f263c:/agedu.c diff --git a/agedu.c b/agedu.c index 9ff6bb8..99fa1f8 100644 --- a/agedu.c +++ b/agedu.c @@ -90,7 +90,7 @@ static int gotdata(void *vctx, const char *pathname, const STRUCT_STAT *st) if (ctx->usemtime || (ctx->fakeatimes && S_ISDIR(st->st_mode))) file.atime = st->st_mtime; else - file.atime = st->st_atime; + file.atime = max(st->st_mtime, st->st_atime); /* * Filter based on wildcards.