summaryrefslogtreecommitdiff
path: root/usr.sbin/mtree
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-06-16 17:51:22 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-06-16 17:51:22 +0000
commit749370a1765396d743c4e5ab6997413c12fb9196 (patch)
treea10e671010a0bcaca868d7f84ebdc05cfd278715 /usr.sbin/mtree
parent604d34a9b97c25f5fb16a77d41174755546054af (diff)
Bitwise AND was used where logical AND was intended; from mpech@
Diffstat (limited to 'usr.sbin/mtree')
-rw-r--r--usr.sbin/mtree/mtree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mtree/mtree.c b/usr.sbin/mtree/mtree.c
index 2cf7d33d65c..b76ded7f542 100644
--- a/usr.sbin/mtree/mtree.c
+++ b/usr.sbin/mtree/mtree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mtree.c,v 1.15 2003/06/02 23:36:54 millert Exp $ */
+/* $OpenBSD: mtree.c,v 1.16 2003/06/16 17:51:21 millert Exp $ */
/* $NetBSD: mtree.c,v 1.7 1996/09/05 23:29:22 thorpej Exp $ */
/*-
@@ -40,7 +40,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)mtree.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: mtree.c,v 1.15 2003/06/02 23:36:54 millert Exp $";
+static const char rcsid[] = "$OpenBSD: mtree.c,v 1.16 2003/06/16 17:51:21 millert Exp $";
#endif
#endif /* not lint */
@@ -162,7 +162,7 @@ main(argc, argv)
exit(0);
}
status = verify();
- if (Uflag & (status == MISMATCHEXIT))
+ if (Uflag && (status == MISMATCHEXIT))
status = 0;
exit(status);
}