Do not remove logging sockets. This fixes an issue where logging

sockets placed into prisons from the host environment get clobbered
by the prison's instance of cleanvar. (assuming /etc/rc is run in
the prison).

Discussed with:	pjd, green, cperciva
MFC after:	1 week
This commit is contained in:
Christian S.J. Peron 2005-04-14 03:56:06 +00:00
parent 8b11740052
commit 99a6b61d70
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145043

View File

@ -18,6 +18,8 @@ purgedir()
(
cd "$dir" && for file in .* *
do
# Skip over logging sockets
[ -S "$file" -a "$file" = "log" ] && continue
[ ."$file" = .. -o ."$file" = ... ] && continue
if [ -d "$file" -a ! -L "$file" ]
then