Subject: Re: CRITICAL ** Holes in default cron jobs ** CRITICAL
To: Bill Sommerfeld <sommerfeld@orchard.medford.ma.us>
From: Perry E. Metzger <perry@piermont.com>
List: current-users
Date: 12/30/1996 16:47:32
Bill Sommerfeld writes:
> Hmm. Wouldn't a `-rm' (or maybe `-unlink') option to `find' be the
> right way to close this hole?
> 
> (find would presumably wander around the hierarchy using chdir/fchdir,
> and thus would only pass single-component pathnames to unlink()).

Actually, I don't think that find does fchdirs, but if it did, that
would very reasonable. We could rig it to do fchdirs only into real
subdirectories (no symlinks) by opening and fstating and then
fchdiring, and it could unlink only in the current directory.

An excellent idea!

Perry