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.
This commit is contained in:
Pawel Jakub Dawidek 2005-08-08 09:46:09 +00:00
parent c22964d7eb
commit 2069c3305d

View File

@ -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