From b8fbfde343e39337bcbddc33cab0bc30ee4fb0e3 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 15 Apr 2008 13:16:38 -0400 Subject: properly handle symlinks, sockets --- rc.d/rc.sysinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1