mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-09 23:19:26 +00:00
--handle-unknown option takes a required argument
Fix a segmentation fault if the --handle-unknown option was set without arguments. Thanks to Alexandre Rebert and his team at Carnegie Mellon University for detecting this crash.
This commit is contained in:
parent
fceca652c1
commit
f6a03f1a3c
@ -171,7 +171,7 @@ int main(int argc, char **argv)
|
|||||||
{"output", required_argument, NULL, 'o'},
|
{"output", required_argument, NULL, 'o'},
|
||||||
{"binary", no_argument, NULL, 'b'},
|
{"binary", no_argument, NULL, 'b'},
|
||||||
{"version", no_argument, NULL, 'V'},
|
{"version", no_argument, NULL, 'V'},
|
||||||
{"handle-unknown", optional_argument, NULL, 'U'},
|
{"handle-unknown", required_argument, NULL, 'U'},
|
||||||
{"mls", no_argument, NULL, 'M'},
|
{"mls", no_argument, NULL, 'M'},
|
||||||
{NULL, 0, NULL, 0}
|
{NULL, 0, NULL, 0}
|
||||||
};
|
};
|
||||||
|
@ -402,7 +402,7 @@ int main(int argc, char **argv)
|
|||||||
{"binary", no_argument, NULL, 'b'},
|
{"binary", no_argument, NULL, 'b'},
|
||||||
{"debug", no_argument, NULL, 'd'},
|
{"debug", no_argument, NULL, 'd'},
|
||||||
{"version", no_argument, NULL, 'V'},
|
{"version", no_argument, NULL, 'V'},
|
||||||
{"handle-unknown", optional_argument, NULL, 'U'},
|
{"handle-unknown", required_argument, NULL, 'U'},
|
||||||
{"mls", no_argument, NULL, 'M'},
|
{"mls", no_argument, NULL, 'M'},
|
||||||
{"help", no_argument, NULL, 'h'},
|
{"help", no_argument, NULL, 'h'},
|
||||||
{NULL, 0, NULL, 0}
|
{NULL, 0, NULL, 0}
|
||||||
|
Loading…
Reference in New Issue
Block a user