Bug 185174 - mtree(1): incomplete compatibility via -F freebsd9
Summary: mtree(1): incomplete compatibility via -F freebsd9
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-25 13:40 UTC by Dmitry Marakasov
Modified: 2015-01-14 19:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov freebsd_committer freebsd_triage 2013-12-25 13:40:00 UTC
New mtree imported from NetBSD has -F flag which, being set to freebsd9, declares compatibility to old mtree.
This, however, is not fully preserved for at least verifying: while old mtree outputs

    filename extra

new mtree outputs

    extra: filename

regardless of -F setting

This affects at least tinderbox which incorrectly parses such output.

How-To-Repeat: % mtree -cn -k uid,gid,mode -p /tmp > /tmp/mtree.pristine
% touch /tmp/newfile
% mtree -f /tmp/mtree.pristine -p /tmp
extra: newfile
% mtree -F freebsd9 -f /tmp/mtree.pristine -p /tmp
extra: newfile
% fmtree -f /tmp/mtree.pristine -p /tmp
newfile extra
Comment 1 Dmitry Marakasov freebsd_committer freebsd_triage 2015-01-14 19:39:02 UTC
No longer relevant