From amdmi3@amdmi3.ru  Wed Dec 25 13:33:08 2013
Return-Path: <amdmi3@amdmi3.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id C67144D9
	for <freebsd-gnats-submit@freebsd.org>; Wed, 25 Dec 2013 13:33:08 +0000 (UTC)
Received: from smtpout7.timeweb.ru (smtpout7.timeweb.ru [92.53.117.21])
	(using TLSv1 with cipher AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 7EC13169F
	for <freebsd-gnats-submit@freebsd.org>; Wed, 25 Dec 2013 13:33:08 +0000 (UTC)
Received: from [213.148.20.85] (helo=hive.panopticon)
	by smtp.timeweb.ru with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.76)
	(envelope-from <amdmi3@amdmi3.ru>)
	id 1Vvoa3-0005Rx-Vf
	for FreeBSD-gnats-submit@freebsd.org; Wed, 25 Dec 2013 17:32:59 +0400
Received: from hades.panopticon (hades.panopticon [192.168.0.32])
	by hive.panopticon (Postfix) with ESMTP id 94BEA815
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Dec 2013 17:32:59 +0400 (MSK)
Received: by hades.panopticon (Postfix, from userid 1000)
	id 884043C34; Wed, 25 Dec 2013 17:32:59 +0400 (MSK)
Message-Id: <20131225133259.884043C34@hades.panopticon>
Date: Wed, 25 Dec 2013 17:32:59 +0400 (MSK)
From: Dmitry Marakasov <amdmi3@FreeBSD.org>
Reply-To: Dmitry Marakasov <amdmi3@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [mtree] incomplete compatibility via -F freebsd9
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         185174
>Category:       bin
>Synopsis:       mtree(1): 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:  Fri Dec 27 04:28:06 UTC 2013
>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:
