git: usr.sbin/makefs: Fix "time" mtree attribute handling

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Oct 31 08:48:28 PDT 2021


commit 58306fcd2a8b47e570ba1490e659bd570ce8be8a
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Sun Oct 31 21:34:33 2021 +0900

    usr.sbin/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.
    
    taken from FreeBSD 286258a9a0e39cfce79d3b072a665b88bfb422c7

Summary of changes:
 usr.sbin/makefs/mtree.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/58306fcd2a8b47e570ba1490e659bd570ce8be8a


-- 
DragonFly BSD source repository


More information about the Commits mailing list