Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jan 2026 16:08:25 -0800
From:      Xin LI <delphij@gmail.com>
To:        jlduran@freebsd.org
Cc:        Gleb Smirnoff <glebius@freebsd.org>, current@freebsd.org, christos@netbsd.org,  Ngie Cooper <ngie@freebsd.org>
Subject:   Re: mtree(1) recent POLA violation
Message-ID:  <CAGMYy3vc68TQ54eD2wYw%2BwgenDSDKvRNiSOgFfk1ObFP_ebqcQ@mail.gmail.com>
In-Reply-To: <CAPwQLcdt%2BKgOygDVrBwuBvv_3U=7xLdU2g6ooc2zrj0OyJfaoQ@mail.gmail.com>
References:  <aV2OtWy0JknNGC1b@cell.glebi.us> <CAPwQLcen1C4YH6nBdsip8dzme3bQHVVLJ%2BkgdtJK83ffRjA0sg@mail.gmail.com> <CAGMYy3vJ9jvkRSdWCWc4d4B5ToyoBUO1cRQXfRLKVwTYGQokBA@mail.gmail.com> <CAPwQLcdt%2BKgOygDVrBwuBvv_3U=7xLdU2g6ooc2zrj0OyJfaoQ@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]

[-- Attachment #2 --]
diff --git a/contrib/mtree/mtree.8 b/contrib/mtree/mtree.8
index 99e3199de943..9fd0df4f9e22 100644
--- a/contrib/mtree/mtree.8
+++ b/contrib/mtree/mtree.8
@@ -242,18 +242,14 @@ If
 is specified, add all of the other keywords.
 .
 .It Fl k Ar keywords
-Use the
+Use the mandatory
 .Sy type
 keyword plus the specified (whitespace or comma separated)
 .Ar keywords
-instead of the current set of keywords.
+to replace the current set of keywords.
 If
 .Ql all
-is specified, use all of the other keywords.
-If the
-.Sy type
-keyword is not desired, suppress it with
-.Fl R Cm type .
+is specified, use all of the available keywords.
 .
 .It Fl L
 Follow all symbolic links in the file hierarchy.
@@ -338,9 +334,13 @@ This occurs when the directory is a symbolic link.
 .It Fl R Ar keywords
 Remove the specified (whitespace or comma separated) keywords from the current
 set of keywords.
+The
+.Sy type
+keyword is mandatory and is always retained.
 If
 .Ql all
-is specified, remove all of the other keywords.
+is specified, remove all keywords except
+.Sy type .
 .
 .It Fl r
 Remove any files in the file hierarchy that are not described in the
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGMYy3vc68TQ54eD2wYw%2BwgenDSDKvRNiSOgFfk1ObFP_ebqcQ>