fix reversed test.

This commit is contained in:
christos 2020-05-22 14:54:30 +00:00
parent 045fafd8a7
commit c4078bc63f
1 changed files with 3 additions and 3 deletions

View File

@ -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_options)
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);
}