Source-Changes-HG archive

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

[src/trunk]: src/bin/cp fix reversed test.



details:   https://anonhg.NetBSD.org/src/rev/27f8f8d159ef
branches:  trunk
changeset: 1010306:27f8f8d159ef
user:      christos <christos%NetBSD.org@localhost>
date:      Fri May 22 14:54:30 2020 +0000

description:
fix reversed test.

diffstat:

 bin/cp/cp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7b3c965ec891 -r 27f8f8d159ef bin/cp/cp.c
--- a/bin/cp/cp.c       Fri May 22 14:09:54 2020 +0000
+++ b/bin/cp/cp.c       Fri May 22 14:54:30 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cp.c,v 1.61 2020/05/17 23:34:11 christos Exp $ */
+/* $NetBSD: cp.c,v 1.62 2020/05/22 14:54:30 christos Exp $ */
 
 /*
  * Copyright (c) 1988, 1993, 1994
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)cp.c       8.5 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: cp.c,v 1.61 2020/05/17 23:34:11 christos Exp $");
+__RCSID("$NetBSD: cp.c,v 1.62 2020/05/22 14:54:30 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -517,7 +517,7 @@
                                                this_failed = any_failed = 1;
 #endif
                                }
-                               if (this_failed && (dne = popdne()))
+                               if (!this_failed && (dne = popdne()))
                                        (void)chmod(to.p_path, 
                                            curr->fts_statp->st_mode);
                        }



Home | Main Index | Thread Index | Old Index