aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index db761415..5c0328ea 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -752,7 +752,7 @@ _NEED_XFILES=
# Clean up /var.
rm -rf /var/lock/cvs/* /var/run/screen/*
-find /var/lock /var/run -type f -exec rm -f {} \;
+find -L /var/lock /var/run ! -type d -exec rm -f {} \;
rm -f /var/lib/rpm/__db* &> /dev/null
rm -f /var/gdm/.gdmfifo &> /dev/null