aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-04-15 13:16:38 -0400
committerBill Nottingham <notting@redhat.com>2008-04-15 13:16:38 -0400
commitb8fbfde343e39337bcbddc33cab0bc30ee4fb0e3 (patch)
treeff735afc9ed84015e8e870756ed454a38cdb38b5
parentbcb9c84d3662b3e583f59004a62dbeab95bbba21 (diff)
downloadinitscripts-b8fbfde343e39337bcbddc33cab0bc30ee4fb0e3.tar
initscripts-b8fbfde343e39337bcbddc33cab0bc30ee4fb0e3.tar.gz
initscripts-b8fbfde343e39337bcbddc33cab0bc30ee4fb0e3.tar.bz2
initscripts-b8fbfde343e39337bcbddc33cab0bc30ee4fb0e3.tar.xz
initscripts-b8fbfde343e39337bcbddc33cab0bc30ee4fb0e3.zip
properly handle symlinks, socketsinitscripts-8.70-1
-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