diff options
author | dougb <dougb@FreeBSD.org> | 2003-02-21 09:37:20 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2003-02-21 09:37:20 +0000 |
commit | bd43cb62923a1b886e2d53c50cc5510b9ac61b70 (patch) | |
tree | 33398aff6a5afe936cc5b27205a714b58799c0f5 /etc | |
parent | e63d1e49edb2922af83448423383e05fd7bcd6e0 (diff) | |
download | FreeBSD-src-bd43cb62923a1b886e2d53c50cc5510b9ac61b70.zip FreeBSD-src-bd43cb62923a1b886e2d53c50cc5510b9ac61b70.tar.gz |
Don't try to deal with vi.recover if the directory doesn't exist
PR: conf/24515
Submitted by: Jeroen C. van Gelderen <jeroen@systemics.com>
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.d/virecover | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/rc.d/virecover b/etc/rc.d/virecover index 4c9a272..8d61bcd 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 |