summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-08-30 03:34:46 +0000
committerimp <imp@FreeBSD.org>1999-08-30 03:34:46 +0000
commite92e244fcc3ee71f9bf8c8a582300cd72e9cfc1b (patch)
treef241782d485ec032e9a1f4bc82411fb86e2547d8
parent88ae865d147e6ccd44e1936100bd2b79dec91aa4 (diff)
downloadFreeBSD-src-e92e244fcc3ee71f9bf8c8a582300cd72e9cfc1b.zip
FreeBSD-src-e92e244fcc3ee71f9bf8c8a582300cd72e9cfc1b.tar.gz
Remove all non-file like things in /var/tmp/vi.recover on reboot.
-rw-r--r--etc/rc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 9a4877a..620f82c 100644
--- a/etc/rc
+++ b/etc/rc
@@ -343,6 +343,7 @@ if [ -f /etc/rc.${arch} ]; then
fi
# Recover vi editor files.
+find /var/tmp/vi.recover ! -type f -a ! -type d -delete
vibackup=`echo /var/tmp/vi.recover/vi.*`
if [ "${vibackup}" != '/var/tmp/vi.recover/vi.*' ]; then
echo 'Recovering vi editor sessions'
OpenPOWER on IntegriCloud