bin/185174: [mtree] incomplete compatibility via -F freebsd9

Dmitry Marakasov amdmi3 at FreeBSD.org
Wed Dec 25 13:40:00 UTC 2013


>Number:         185174
>Category:       bin
>Synopsis:       [mtree] incomplete compatibility via -F freebsd9
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 25 13:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 10.0-RC2 amd64
>Organization:
>Environment:
System: FreeBSD hades.panopticon 10.0-RC2 FreeBSD 10.0-RC2 #0 r259560: Wed Dec 18 21:37:41 MSK 2013 root at hades.panopticon:/usr/obj/usr/src/sys/HADES amd64


>Description:
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
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list