Bug 219467 - `mtree -R type -k flags` prints out type= keyword attributes, contrary to what the manpage says it should do
Summary: `mtree -R type -k flags` prints out type= keyword attributes, contrary to wha...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-23 01:22 UTC by Enji Cooper
Modified: 2017-05-27 01:40 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper freebsd_committer freebsd_triage 2017-05-23 01:22:59 UTC
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
Comment 1 Enji Cooper freebsd_committer freebsd_triage 2017-05-23 01:23:36 UTC
(In reply to Ngie Cooper from comment #0)

*clear omit -> omit