Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2013 17:32:59 +0400 (MSK)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/185174: [mtree] incomplete compatibility via -F freebsd9
Message-ID:  <20131225133259.884043C34@hades.panopticon>
Resent-Message-ID: <201312251340.rBPDe0m0042824@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131225133259.884043C34>