Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/external/bsd/nvi/usr.bin/recover Pull up following revisi...



details:   https://anonhg.NetBSD.org/src/rev/7260bc232d18
branches:  netbsd-8
changeset: 434536:7260bc232d18
user:      snj <snj%NetBSD.org@localhost>
date:      Tue Jan 09 19:27:41 2018 +0000

description:
Pull up following revision(s) (requested by christos in ticket #482):
        external/bsd/nvi/usr.bin/recover/virecover: revision 1.4
Don't get stuck reading named pipes; only try to read plain files in
order to send mail.

diffstat:

 external/bsd/nvi/usr.bin/recover/virecover |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r 68749da42d2c -r 7260bc232d18 external/bsd/nvi/usr.bin/recover/virecover
--- a/external/bsd/nvi/usr.bin/recover/virecover        Tue Jan 09 19:24:44 2018 +0000
+++ b/external/bsd/nvi/usr.bin/recover/virecover        Tue Jan 09 19:27:41 2018 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: virecover,v 1.1.22.1 2017/11/06 09:37:24 snj Exp $
+#      $NetBSD: virecover,v 1.1.22.2 2018/01/09 19:27:41 snj Exp $
 #
 #      @(#)recover.in  8.8 (Berkeley) 10/10/96
 #
@@ -17,13 +17,13 @@
        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 @@
        $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
 



Home | Main Index | Thread Index | Old Index