Skip to contentSkip to conversation

policycoreutils: semodule - remove 'q' from getopt string

PATCH Applied Petr Lautrbach 2 participants 2 messages Aug 4, 2016 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 policycoreutils: semodule - remove 'q' from getopt string

Users are confused that this option is not documented or that 'semodule -q' doesn't show:

semodule: invalid option -- 'q'

---
 policycoreutils/semodule/semodule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
policycoreutils/semodule/semodule.c +1 -1
index 63900f4..ce048bc 100644
@@ -209,7 +209,7 @@ static void parse_command_line(int argc, char **argv)
 	no_reload = 0;
 	priority = 400;
 	while ((i =
-		getopt_long(argc, argv, "s:b:hi:l::vqr:u:RnNBDCPX:e:d:p:S:E:cH", opts,
+		getopt_long(argc, argv, "s:b:hi:l::vr:u:RnNBDCPX:e:d:p:S:E:cH", opts,
 			    NULL)) != -1) {
 		switch (i) {
 		case 'b':
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 6 lines · Petr Lautrbach

Users are confused that this option is not documented or that 'semodule -q' doesn't show:

semodule: invalid option -- 'q'

Applied. Thanks!

Quoted 18 lines
---
 policycoreutils/semodule/semodule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
policycoreutils/semodule/semodule.c +1 -1
index 63900f4..ce048bc 100644
@@ -209,7 +209,7 @@ static void parse_command_line(int argc, char **argv)
 	no_reload = 0;
 	priority = 400;
 	while ((i =
-		getopt_long(argc, argv, "s:b:hi:l::vqr:u:RnNBDCPX:e:d:p:S:E:cH", opts,
+		getopt_long(argc, argv, "s:b:hi:l::vr:u:RnNBDCPX:e:d:p:S:E:cH", opts,
 			    NULL)) != -1) {
 		switch (i) {
 		case 'b':