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
..
2016-06-02 19:06:04 +00:00
ccd
2016-04-24 12:07:44 +00:00
2016-05-15 06:00:13 +00:00
2015-06-27 18:01:50 +00:00
2017-07-13 13:32:23 +00:00
2017-07-18 14:02:02 +00:00
2017-07-05 20:00:58 +00:00
2017-07-08 09:28:31 +00:00
2016-05-29 02:59:03 +00:00
pf
2017-07-08 09:28:31 +00:00
2017-07-08 09:28:31 +00:00
2017-05-27 06:24:06 +00:00
2017-07-08 09:28:31 +00:00
2017-05-03 08:10:03 +00:00
2016-08-03 16:34:20 +00:00
2017-01-28 02:22:15 +00:00
2016-06-06 03:55:00 +00:00
2016-05-28 17:43:40 +00:00