[Bug 219467] `mtree -R type -k flags` prints out type= keyword attributes, contrary to what the manpage says it should do
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Dec 2025 05:00:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219467
Jose Luis Duran <jlduran@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jlduran@FreeBSD.org
--- Comment #2 from Jose Luis Duran <jlduran@FreeBSD.org> ---
Created attachment 266206
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=266206&action=edit
Initial proposed fix
mtree: Fix parsing 'K', 'k', and 'R' flags
Move the parsing of the keywords for the 'K', 'k', and 'R' flags outside the
getopt loop, so that the order of the flags does not matter.
Also, check for the presence of the F_TYPE flag before printing the type
keyword.
--
You are receiving this mail because:
You are the assignee for the bug.