Source-Changes-HG archive

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

[src/trunk]: src/sbin/restore Fix reversed test (thanks phone@)



details:   https://anonhg.NetBSD.org/src/rev/55fe9f1a475c
branches:  trunk
changeset: 1023198:55fe9f1a475c
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Aug 29 09:17:58 2021 +0000

description:
Fix reversed test (thanks phone@)

diffstat:

 sbin/restore/interactive.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a59087f165fa -r 55fe9f1a475c sbin/restore/interactive.c
--- a/sbin/restore/interactive.c        Sun Aug 29 09:15:33 2021 +0000
+++ b/sbin/restore/interactive.c        Sun Aug 29 09:17:58 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: interactive.c,v 1.30 2021/08/29 09:15:33 christos Exp $        */
+/*     $NetBSD: interactive.c,v 1.31 2021/08/29 09:17:58 christos Exp $        */
 
 /*
  * Copyright (c) 1985, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)interactive.c      8.5 (Berkeley) 5/1/95";
 #else
-__RCSID("$NetBSD: interactive.c,v 1.30 2021/08/29 09:15:33 christos Exp $");
+__RCSID("$NetBSD: interactive.c,v 1.31 2021/08/29 09:17:58 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -597,7 +597,7 @@
        fp->fnum = dp->d_ino;
        fp->fname = savename(dp->d_name);
        for (cp = fp->fname; *cp; cp++)
-               if (!vflag && isprint((unsigned char)*cp))
+               if (!vflag && !isprint((unsigned char)*cp))
                        *cp = '?';
        fp->len = cp - fp->fname;
        if (dflag && TSTINO(fp->fnum, dumpmap) == 0)



Home | Main Index | Thread Index | Old Index