diff options
-rw-r--r-- | man/tmpfiles.d.xml | 7 | ||||
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml index a86ef33695..86fa4394c0 100644 --- a/man/tmpfiles.d.xml +++ b/man/tmpfiles.d.xml @@ -265,7 +265,12 @@ L /tmp/foobar - - - - /dev/null</programlisting> </variablelist> <para>If multiple integers and units are specified the time - values are summed up.</para> + values are summed up. If an integer is given witohut a unit, + s is assumed. + </para> + + <para>When the age is set to zero, the files are cleaned + unconditionally.</para> <para>The age field only applies to lines starting with d, D and x. If omitted or set to - no automatic clean-up 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); |