[Bug 192839] Duplicate entries in an mtree file cause nmtree to coredump

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 23 Jul 2023 15:29:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192839

Felix Dietrich <felix.dietrich+freebsd-bugtracker@sperrhaken.name> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |felix.dietrich+freebsd-bugt
                   |                            |racker@sperrhaken.name

--- Comment #6 from Felix Dietrich <felix.dietrich+freebsd-bugtracker@sperrhaken.name> ---
I am unable to reproduce the core dump with the provided examples:

The example of comment #1 yields (the “-E” to exclude a tag should presumably
have been a “-e” to not complain about files not in the specification) :

  nmtree: no parent node
  nmtree: failed at line 6 of the specification

For the example in comment #3 only the line number in the output differs:

  nmtree: no parent node
  nmtree: failed at line 4 of the specification

A slight modification to the example found in comment #1 (specifying the
default type to be “dir”)

  /set type=dir
  .
      duplicate_entry
      ..
      duplicate_entry
      ..
  ..

yields, on an empty root directory, the following:

  ./dup missing (directory not created: user not specified)

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