Bug 199075 - mtree -F freebsd9 not consistent with fmtree
Summary: mtree -F freebsd9 not consistent with fmtree
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.1-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-03-31 19:39 UTC by Thomas Quinot
Modified: 2020-07-12 16:49 UTC (History)
2 users (show)

See Also:


Attachments
patch (547 bytes, patch)
2015-03-31 19:39 UTC, Thomas Quinot
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.