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/029076e24482
branches: trunk
changeset: 933216:029076e24482
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 ad7b1bd9a631 -r 029076e24482 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