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:
parent
c22964d7eb
commit
2069c3305d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user