diff options
author | pjd <pjd@FreeBSD.org> | 2005-08-08 09:46:09 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-08-08 09:46:09 +0000 |
commit | 23635726251c53a8c24046d76f2bf60be8d8be56 (patch) | |
tree | f50ad5f24b8111eecce397e2a70f59a52a191d12 | |
parent | b3a28a5d9481a9bdfdb0e8a86b1384e65da21155 (diff) | |
download | FreeBSD-src-23635726251c53a8c24046d76f2bf60be8d8be56.zip FreeBSD-src-23635726251c53a8c24046d76f2bf60be8d8be56.tar.gz |
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.
-rw-r--r-- | etc/rc.d/cleanvar | 3 |
1 files changed, 3 insertions, 0 deletions
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 |