~mdw
/
sgt
/
agedu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Instead of using pure atimes, I think we should generally use
[sgt/agedu]
/
agedu.c
diff --git
a/agedu.c
b/agedu.c
index
9ff6bb8
..
99fa1f8
100644
(file)
--- 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.