[Bug 219467] `mtree -R type -k flags` prints out type= keyword attributes, contrary to what the manpage says it should do

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue May 23 01:22:59 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219467

            Bug ID: 219467
           Summary: `mtree -R type -k flags` prints out type= keyword
                    attributes, contrary to what the manpage says it
                    should do
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: ngie at FreeBSD.org

Per mtree(8), passing `-R type -k flags` should clear omit type keywords from
the spec created via mtree:

     -k keywords        Use the type keyword plus the specified (whitespace or
                        comma separated) keywords instead of the current set
                        of keywords.  If `all' is specified, use all of the
                        other keywords.  If the type keyword is not desired,
                        suppress it with -R type.

Trying this though, demonstrates that that is not the case:

$ sudo mtree -cn -R type -k flags -p /usr/bin/ -x | grep type=
/set type=file flags=uarch
.               type=dir
    chfn        type=link
    chsh        type=link
    cpio        type=link
    mailq       type=link
    newaliases  type=link
    perl        type=link
    perl5       type=link
    pgrep       type=link
    pkill       type=link
    stelnet     type=link
    tar         type=link
    ypchfn      type=link
    ypchpass    type=link
    ypchsh      type=link
    yppasswd    type=link

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


More information about the freebsd-bugs mailing list