diff options
Diffstat (limited to 'etc/rc.d/cleanvar')
-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 |