* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* chkpath is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* chkpath is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with chkpath; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* You should have received a copy of the GNU General Public License
* along with chkpath; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
static void report(unsigned what, int verbose,
const char *p, const char *msg,
void *arg)
static void report(unsigned what, int verbose,
const char *p, const char *msg,
void *arg)
-{
- fprintf(fp, "%s version %s\n", QUIS, VERSION);
-}
+ { fprintf(fp, "%s version %s\n", QUIS, VERSION); }
-V, --version Display the program's version number.\n\
-u, --usage Show a terse usage summary.\n\
\n\
-V, --version Display the program's version number.\n\
-u, --usage Show a terse usage summary.\n\
\n\
--v, --verbose Be verbose about the search progress (cumulative).\n\
+-g, --group NAME Consider members of group NAME trustworthy.\n\
+-p, --print Write the secure path elements to standard output.\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\
-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\
--p, --print Write the secure path elements to standard output.\n\
+-t, --trust-groups Consider other members of your group trustworthy.\n\
+-v, --verbose Be verbose about the search progress (cumulative).\n\
- { "version", 0, 0, 'V' },
+ { "version", 0, 0, 'V' },
- { "verbose", 0, 0, 'v' },
+ { "group", OPTF_ARGREQ, 0, 'g' },
+ { "print", 0, 0, 'p' },
- { "trust-group", 0, 0, 't' },
- { "print", 0, 0, 'p' },
+ { "trust-groups", 0, 0, 't' },
+ { "verbose", 0, 0, 'v' },