summaryrefslogtreecommitdiff
path: root/src/tmpfiles/tmpfiles.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2012-09-03 15:07:32 +0200
committerTom Gundersen <teg@jklm.no>2012-10-23 21:53:20 +0200
commita2558205f762ce6f1374cea0eedf5e76a6134f41 (patch)
treedbb94844d49ba549d5b2a305497b533c40997ccd /src/tmpfiles/tmpfiles.c
parent1cb88f2c61f590083847d65cd5a518e834da87d3 (diff)
tmpfiles: allow Age to be set to 0
Mostly useful for testing purposes. Setting Age to 1s works just as well, but it is surprising that using 0s (or just 0) does not work. Also clarify this in the documentation.
Diffstat (limited to 'src/tmpfiles/tmpfiles.c')
-rw-r--r--src/tmpfiles/tmpfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index c32cbd1aea..c27d0112f9 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -409,7 +409,7 @@ static int clean_item(Item *i) {
i->type != IGNORE_PATH)
return 0;
- if (!i->age_set || i->age <= 0)
+ if (!i->age_set)
return 0;
n = now(CLOCK_REALTIME);