Module Name: src Committed By: christos Date: Fri May 22 14:54:30 UTC 2020
Modified Files: src/bin/cp: cp.c Log Message: fix reversed test. To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/bin/cp/cp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/cp/cp.c diff -u src/bin/cp/cp.c:1.61 src/bin/cp/cp.c:1.62 --- src/bin/cp/cp.c:1.61 Sun May 17 19:34:11 2020 +++ src/bin/cp/cp.c Fri May 22 10:54:30 2020 @@ -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 @@ __COPYRIGHT( #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 @@ copy(char *argv[], enum op type, int fts 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); }