summaryrefslogtreecommitdiff
path: root/compare.c
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@FreeBSD.org>2025-12-19 20:11:33 +0000
committerJose Luis Duran <jlduran@FreeBSD.org>2025-12-19 20:11:33 +0000
commiteb2ccba0c11b405ac613c3046997765317cc8b5c (patch)
tree104e7e7aa9a5c0c8d1e98fed8f0668b5839f3df7 /compare.c
parentf600477feb4ae61a75f61949eb600caff4aeea8c (diff)
Vendor import of NetBSD's mtree at 2025-12-19vendor/NetBSD/mtree/20251219
Diffstat (limited to 'compare.c')
-rw-r--r--compare.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/compare.c b/compare.c
index c4e5bfcac1d7..cc31ec365194 100644
--- a/compare.c
+++ b/compare.c
@@ -1,4 +1,4 @@
-/* $NetBSD: compare.c,v 1.61 2024/12/05 17:17:43 christos Exp $ */
+/* $NetBSD: compare.c,v 1.63 2025/12/14 17:30:47 christos Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: compare.c,v 1.61 2024/12/05 17:17:43 christos Exp $");
+__RCSID("$NetBSD: compare.c,v 1.63 2025/12/14 17:30:47 christos Exp $");
#endif
#endif /* not lint */
@@ -285,22 +285,18 @@ typeerr: LABEL;
LABEL;
printf(flavor == F_FREEBSD9 ?
- "%spermissions expcted %#lo found %#lo" :
+ "%spermissions expected %#lo found %#lo" :
"%spermissions (%#lo, %#lo",
tab, (u_long)s->st_mode,
(u_long)p->fts_statp->st_mode & MBITS);
if (uflag) {
if (lchmod(p->fts_accpath, s->st_mode))
- printf(", not modified: %s%s\n",
- strerror(errno),
- flavor == F_FREEBSD9 ? "" : ")");
+ printf(", not modified: %s", strerror(errno));
else
- printf(", modified%s%s\n",
- was_unlinked ? " by unlink" : "",
- flavor == F_FREEBSD9 ? "" : ")");
+ printf(", modified%s",
+ was_unlinked ? " by unlink" : "");
}
- else
- printf(")\n");
+ printf("%s\n", flavor == F_FREEBSD9 ? "" : ")");
tab = "\t";
skip: ;
}