From 23635726251c53a8c24046d76f2bf60be8d8be56 Mon Sep 17 00:00:00 2001 From: pjd Date: Mon, 8 Aug 2005 09:46:09 +0000 Subject: Back-out previous commit - we need to skip logging socket when we start a jail and external syslogd is listening in jail's chroot. Pointed out by: csjp While here, skip also "logpriv" socket. --- etc/rc.d/cleanvar | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc/rc.d/cleanvar') diff --git a/etc/rc.d/cleanvar b/etc/rc.d/cleanvar index f2b396f..8178fef 100644 --- a/etc/rc.d/cleanvar +++ b/etc/rc.d/cleanvar @@ -18,6 +18,9 @@ purgedir() ( cd "$dir" && for file in .* * do + # Skip over logging sockets + [ -S "$file" -a "$file" = "log" ] && continue + [ -S "$file" -a "$file" = "logpriv" ] && continue [ ."$file" = .. -o ."$file" = ... ] && continue if [ -d "$file" -a ! -L "$file" ] then -- cgit v1.1