From bd43cb62923a1b886e2d53c50cc5510b9ac61b70 Mon Sep 17 00:00:00 2001 From: dougb Date: Fri, 21 Feb 2003 09:37:20 +0000 Subject: [PATCH] Don't try to deal with vi.recover if the directory doesn't exist PR: conf/24515 Submitted by: Jeroen C. van Gelderen --- etc/rc.d/virecover | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/rc.d/virecover b/etc/rc.d/virecover index 4c9a272a1b57..8d61bcdb3d3d 100755 --- a/etc/rc.d/virecover +++ b/etc/rc.d/virecover @@ -27,6 +27,7 @@ esac virecover_start() { + [ -d /var/tmp/vi.recover ] || return 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