]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
makefs: Fix "time" mtree attribute handling
authoremaste <emaste@FreeBSD.org>
Mon, 18 Mar 2019 19:26:36 +0000 (19:26 +0000)
committeremaste <emaste@FreeBSD.org>
Mon, 18 Mar 2019 19:26:36 +0000 (19:26 +0000)
commite4e05b949c390c28ad1a22638068598665891635
treeeb09f820e7c7157dc145bfbaa8cc03e2af014318
parentc6b6ed2e549b753df7d2ecf2f0103b2223698dac
makefs: Fix "time" mtree attribute handling

When processing mtree(5) MANIFEST files, makefs(8) previously threw an
error if it encountered an entry whose "time" attribute contained a
non-zero subsecond component (e.g. time=1551620152.987220000).

Update the handling logic to properly assign the subsecond component if
built with nanosecond support, or silently discard it otherwise.

Also, re-enable the time attribute for the kyua tests.

PR: 194703
Submitted by: Mitchell Horne <mhorne063@gmail.com>
Differential Revision: https://reviews.freebsd.org/D19627
usr.sbin/makefs/mtree.c
usr.sbin/makefs/tests/makefs_tests_common.sh