Mark Felder 330d62831f Refactor cleanvar to remove shell expansion vulnerability
If any process creates a directory named "-P" in /var/run or
/var/spool/lock it will cause the purgedir function to start to rm -r /.

Simplify a lot of complicated shell logic by leveraging find(1).

Reviewed by:	allanjude
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D13778
2018-02-06 21:35:41 +00:00
..
2017-03-12 18:58:55 +00:00
2017-10-06 08:43:14 +00:00
2017-12-02 06:23:02 +00:00
2017-10-29 08:17:03 +00:00
rc
2018-02-06 20:12:05 +00:00
rpc
2017-12-31 17:11:12 +00:00