Package: tmpreaper
Version: 1.6.13+nmu1

On Wed, 03 Aug 2011, Mick Switser wrote:
> The solution:
> Put the protect match check block (if (FLAGS_PROTECT_P (flags)) {) before
> the recursive directory check block (if (S_ISDIR (sb.st_mode)) {).

I fully agree.  I also needed to protect a complete subdirectory of
/tmp, read the tmpreaper source to be sure it works the way I *expect*
it to deal with this case, and ended up with the very same conclusion.

Paul, please apply this patch.  It picks the safe (and more useful) of
the two possible interpretations of the --protect parameter (i.e.,
protects all files within a protected subdirectory from being deleted).

-- Horst

-- 
PGP-Key 0xD40E0E7A



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to