Bug 199075

Summary: mtree -F freebsd9 not consistent with fmtree
Product: Base System Reporter: Thomas Quinot <thomas>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Many People CC: brooks, emaste
Priority: --- Keywords: patch
Version: 10.1-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Thomas Quinot freebsd_committer freebsd_triage 2015-03-31 19:39:06 UTC
Created attachment 155066 [details]
patch

The -F freebsd9 (n)mtree command line switch is supposed to produce output that is compatible with the legacy FreeBSD (f)mtree format. However, extra files are reported differently:

+ mkdir foo
+ cd foo
+ touch bar
+ mtree -c
+ touch fred
+ mtree -f /tmp/m -F freebsd9
. changed
	modification time expected Tue Mar 31 21:34:20 2015 found Tue Mar 31 21:34:20 2015
extra: fred
+ fmtree -f /tmp/m
. changed
	modification time expected Tue Mar 31 21:34:20 2015 found Tue Mar 31 21:34:20 2015
fred extra
Comment 1 Ed Maste freebsd_committer freebsd_triage 2017-09-01 02:02:46 UTC
Brooks, as someone who's looked at mtree a fair bit, any comment?
Comment 2 Brooks Davis freebsd_committer freebsd_triage 2017-09-01 23:36:30 UTC
This looks right, but should probably be submitted to netbsd which is our upstream.