mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
chcon: exclude constraints for impossible option if long opts are off
This commit is contained in:
parent
1203c9bf2f
commit
955bccc94f
@ -133,9 +133,12 @@ int chcon_main(int argc, char *argv[])
|
|||||||
#if ENABLE_FEATURE_CHCON_LONG_OPTIONS
|
#if ENABLE_FEATURE_CHCON_LONG_OPTIONS
|
||||||
applet_long_options = chcon_options;
|
applet_long_options = chcon_options;
|
||||||
#endif
|
#endif
|
||||||
opt_complementary = "-1" /* at least 1 param */
|
opt_complementary = "-1" /* at least 1 param */
|
||||||
":?:f--v:v--f" /* 'verbose' and 'quiet' are exclusive */
|
":?" /* error if exclusivity constraints are violated */
|
||||||
":\xff--urtl:u--\xff:r--\xff:t--\xff:l--\xff";
|
#if ENABLE_FEATURE_CHCON_LONG_OPTIONS
|
||||||
|
":\xff--urtl:u--\xff:r--\xff:t--\xff:l--\xff"
|
||||||
|
#endif
|
||||||
|
":f--v:v--f"; /* 'verbose' and 'quiet' are exclusive */
|
||||||
getopt32(argc, argv, "Rchf:u:r:t:l:v",
|
getopt32(argc, argv, "Rchf:u:r:t:l:v",
|
||||||
&user, &role, &type, &range, &reference_file);
|
&user, &role, &type, &range, &reference_file);
|
||||||
argv += optind;
|
argv += optind;
|
||||||
|
Loading…
Reference in New Issue
Block a user