From a2558205f762ce6f1374cea0eedf5e76a6134f41 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Mon, 3 Sep 2012 15:07:32 +0200 Subject: 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. --- src/tmpfiles/tmpfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tmpfiles') 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); -- cgit v1.2.3-54-g00ecf