summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-06-08 08:57:35 +0000
committerbrian <brian@FreeBSD.org>2000-06-08 08:57:35 +0000
commit0ff63a6e46d903772a271af0ff701b51c630f329 (patch)
treec7bda5612b39e074731d245a557e8435b8495a7d /etc
parent85c7b2d731d3479e55d85cfadb9c51593d1873b4 (diff)
downloadFreeBSD-src-0ff63a6e46d903772a271af0ff701b51c630f329.zip
FreeBSD-src-0ff63a6e46d903772a271af0ff701b51c630f329.tar.gz
Don't attempt to rm directories under /var/spool/lock.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index c97dd02..6d03e49 100644
--- a/etc/rc
+++ b/etc/rc
@@ -137,7 +137,7 @@ adjkerntz -i
clean_var() {
if [ ! -f /var/run/clean_var ]; then
rm -rf /var/run/*
- rm -f /var/spool/lock/*
+ find /var/spool/lock ! -type d -delete
rm -rf /var/spool/uucp/.Temp/*
# Keep a copy of the boot messages around
dmesg >/var/run/dmesg.boot
OpenPOWER on IntegriCloud