Remove all non-file like things in /var/tmp/vi.recover on reboot.

This commit is contained in:
Warner Losh 1999-08-30 03:34:46 +00:00
parent de5104ae7c
commit 8b2bfd893a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50612

1
etc/rc
View file

@ -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'