diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-10-06 04:41:47 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-10-06 04:41:47 +0000 |
commit | 38bb20d087fafcf57d10190e01823def609e3da4 (patch) | |
tree | 34b2bb78fec69c863c019b15854be51f21025515 | |
parent | ae71893fae1e924fa77a6a0e6741197b3fdf7fa3 (diff) |
Don't complain that /var/tmp/vi.recover is not owned by root
when it doesn't exist.
-rw-r--r-- | etc/rc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.117 1999/10/03 04:22:42 deraadt Exp $ +# $OpenBSD: rc,v 1.118 1999/10/06 04:41:46 millert Exp $ # System startup script run by init on autoboot # or after single-user. @@ -330,15 +330,15 @@ fi # vi file recovery vidir=/var/tmp/vi.recover -if [ -L $vidir ]; then +if [ ! -e $vidir ]; then + mkdir $vidir + chmod 1777 $vidir +elif [ -L $vidir ]; then echo "Warning! $vidir is a symbolic link! (ignoring)" elif [ ! -O $vidir ]; then echo "Warning! $vidir is not owned by root! (ignoring)" elif [ ! -d $vidir -a -e $vidir ]; then echo "Warning! $vidir is not a directory! (ignoring)" -elif [ ! -d $vidir ]; then - mkdir $vidir - chmod 1777 $vidir else vibackup=$vidir/vi.* for i in $vibackup; do |