From: Mark Wooding Date: Mon, 8 Jul 2024 00:40:53 +0000 (+0100) Subject: chkpath.c, chkpath.1: Rename `--trust-group' to `--trust-groups'. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/checkpath/commitdiff_plain/6e34d9e949472ccf9fd0566eac72dfbb71c5e2b6?ds=sidebyside chkpath.c, chkpath.1: Rename `--trust-group' to `--trust-groups'. It trusts the supplementary groups too, so this is a better name. Compatibility isn't broken, because `mdwopt' matches unambiguous prefixes. --- diff --git a/chkpath.1 b/chkpath.1 index fe4c968..e4ab179 100644 --- a/chkpath.1 +++ b/chkpath.1 @@ -104,7 +104,7 @@ Turning this option on isn't recommended: if you use a sticky directory in your path then other people can add malicious commands whose names are common typos of standard ones. .TP -.B "\-t, \-\-trust-group" +.B "\-t, \-\-trust-groups" Modifies the ruleset slightly so that .B chkpath doesn't warn about directories group-owned by groups you're a member diff --git a/chkpath.c b/chkpath.c index e118c9e..c5ef46e 100644 --- a/chkpath.c +++ b/chkpath.c @@ -88,7 +88,7 @@ Options provided are:\n\ -q, --quiet Be quiet about the search progress (cumulative).\n\ -s, --sticky Consider sticky directories secure against\n\ modification by world and group (not recommended).\n\ --t, --trust-group Consider other members of your group trustworthy.\n\ +-t, --trust-groups Consider other members of your group trustworthy.\n\ -v, --verbose Be verbose about the search progress (cumulative).\n\ ", fp); @@ -129,7 +129,7 @@ int main(int argc, char *argv[]) { "print", 0, 0, 'p' }, { "quiet", 0, 0, 'q' }, { "sticky", 0, 0, 's' }, - { "trust-group", 0, 0, 't' }, + { "trust-groups", 0, 0, 't' }, { "verbose", 0, 0, 'v' }, { 0, 0, 0, 0 } };