Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2019 12:41:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 241178] makefs segfault when manifest include symlinks without the link keyword
Message-ID:  <bug-241178-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241178

            Bug ID: 241178
           Summary: makefs segfault when manifest include symlinks without
                    the link keyword
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: sheda@fsfe.org

Created attachment 208226
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D208226&action=
=3Dedit
link type require the link keyword

With a directory d/ containing the following 2 files:

    -rw-r--r--  1 root  wheel  14 Oct 10 11:55 hello.txt
    lrwxr-xr-x  1 root  wheel   9 Oct 10 11:55 world.txt -> hello.txt

using mtree to build a manifest as follow:

    mtree -ck mode -p ./d | mtree -C > no-link-kw.makefs-manifest

here is the resulting manifest:=20=20=20=20

    . type=3Ddir mode=3D0755
    ./hello.txt type=3Dfile mode=3D0644
    ./world.txt type=3Dlink mode=3D0755

running makefs as follow lead to segfault:

    cd d
    makefs -t ffs -o optimization=3Dspace -o version=3D2 ../no-link-kw.img
../no-link-kw.makefs-manifest

Attached is a small fix that ensure makefs will complain about the missing =
link
keyword when facing a link type node.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241178-227>