#1129351 /etc/cron.daily/tmpreaper: wrong test discards TMPREAPER_TIME from /etc/default/rcS

Package:
tmpreaper
Source:
tmpreaper
Description:
cleans up files in directories based on their age
Submitter:
g1
Date:
2026-03-01 10:07:02 UTC
Severity:
normal
#1129351#5
Date:
2026-03-01 10:05:46 UTC
From:
To:
In /etc/cron.daily/tmpreaper, there are these lines:
exactly when TMPREAPER_TIME is already set.

If one does not set TMPREAPER_TIME in /etc/tmpreaper.conf,
the whole if-block is skipped, TMPREAPER_TIME is not read from
/etc/default/rcS, and is subsequently set to 7 days by the line
    TMPREAPER_TIME=${TMPREAPER_TIME:-7d}

The test in question should be replaced with [ -z "$TMPREAPER_TIME" ].

Best regards,
	g.