Don't get stuck reading named pipes; only try to read plain files in

order to send mail.
This commit is contained in:
christos 2017-11-09 15:03:01 +00:00
parent 3284574b5e
commit c15dd4940b

View File

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