NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/59826: mtree: Fix FreeBSD 9 compatibility output
>Number: 59826
>Category: bin
>Synopsis: mtree: Fix FreeBSD 9 compatibility output
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 09 14:55:00 +0000 2025
>Originator: Jose Luis Duran
>Release: trunk
>Organization:
FreeBSD
>Environment:
>Description:
Remove a spurious closing parenthesis when using FreeBSD 9 compatibility.
>How-To-Repeat:
$ mkdir /tmp/foo
$ cd /tmp/foo
$ touch bar
$ mtree -c > /tmp/m
$ chmod 0400 bar
$ mtree -f /tmp/m -F freebsd9
. changed
modification time expected Tue Dec 9 12:00:00 2025 found Tue Dec 9 12:00:00 2025
bar changed
permissions expcted 0644 found 0400) <-- EXTRA ")"
* The typo "expcted" has been reported in bin/59824.
>Fix:
--- usr.sbin/mtree/compare.c
+++ usr.sbin/mtree/compare.c
@@ -300,7 +300,7 @@ typeerr: LABEL;
flavor == F_FREEBSD9 ? "" : ")");
}
else
- printf(")\n");
+ printf("%s\n", flavor == F_FREEBSD9 ? "" : ")");
tab = "\t";
skip: ;
}
Home |
Main Index |
Thread Index |
Old Index