1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#include "ntux_driver_impl.h"
#include "argv/argv.h"
const struct argv_option ntux_chmod_options[] = {
{"version", 'v',TAG_VERSION,ARGV_OPTARG_NONE,0,0,0,
"show version information"},
{"help", 'h',TAG_HELP,ARGV_OPTARG_OPTIONAL,0,"short|long",0,
"show usage information [listing %s options only]"},
{"verbose", 'V',TAG_VERBOSE,ARGV_OPTARG_NONE,0,0,0,
"dump security descriptor information for each file and action"},
{"silent", 'f',TAG_VERSION,ARGV_OPTARG_NONE,0,0,0,
"suppress most error messages"},
{"recursive", 'R',TAG_RECURSIVE,ARGV_OPTARG_NONE,0,0,0,
"recurse into sub-directories"},
{"strmode", 's',TAG_STRMODE,ARGV_OPTARG_REQUIRED,0,0,"<STRMODE>",
"set mode based on the symbolic mode %s"},
{"refmode", 'e',TAG_REFMODE,ARGV_OPTARG_REQUIRED,0,0,"<REFMODE>",
"set mode based on the reference file %s"},
{"reference", 0,TAG_REFMODE,ARGV_OPTARG_REQUIRED,0,0,0,
"a synonym for --refmode"},
{"changes", 'c',TAG_CHANGES,ARGV_OPTARG_NONE,0,0,0,
"a synonym for --refmode"},
{"preserve-root", 0,TAG_ROOTED,ARGV_OPTARG_NONE,0,0,0,
"disallow operating on the root folder /"},
{"no-preserve-root", 0,TAG_ROOTLESS,ARGV_OPTARG_NONE,0,0,0,
"allow operating on the root folder /"},
{0,0,0,0,0,0,0,0}
};
|