From c15dd4940be238631c364dca78481186392daabe Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 9 Nov 2017 15:03:01 +0000 Subject: [PATCH] Don't get stuck reading named pipes; only try to read plain files in order to send mail. --- external/bsd/nvi/usr.bin/recover/virecover | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/external/bsd/nvi/usr.bin/recover/virecover b/external/bsd/nvi/usr.bin/recover/virecover index a83e378c1dc7..8212877ea761 100644 --- a/external/bsd/nvi/usr.bin/recover/virecover +++ b/external/bsd/nvi/usr.bin/recover/virecover @@ -1,6 +1,6 @@ #!/bin/sh - # -# $NetBSD: virecover,v 1.3 2017/11/04 07:04:01 kre Exp $ +# $NetBSD: virecover,v 1.4 2017/11/09 15:03:01 christos Exp $ # # @(#)recover.in 8.8 (Berkeley) 10/10/96 # @@ -17,13 +17,13 @@ for i in $RECDIR/vi.*; do esac # Only test files that are readable. - if ! [ -f "$i" ] || ! [ -r "$i" ]; then + if [ ! -f "$i" ] || [ ! -r "$i" ]; then continue fi # Unmodified nvi editor backup files either have the # execute bit set or are zero length. Delete them. - if [ -x "$i" ] || ! [ -s "$i" ]; then + if [ -x "$i" ] || [ ! -s "$i" ]; then rm -f "$i" fi done @@ -36,8 +36,8 @@ for i in $RECDIR/recover.*; do $RECDIR/recover.\*) continue;; esac - # Only test files that are readable. - if ! [ -r "$i" ]; then + # Only test plain files that are readable. + if [ ! -f "$i" ] || [ ! -r "$i" ]; then continue fi