-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I believe this was already applied upstream but we still have it. Basically stops a crash if you call hanlde-unknown without an option This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJpJB4ACgkQrlYvE4MpobMuXgCguRCvwlDptmFIu2CQOdsREZFI NJYAoKt9rJEokmqlJSO4CV1uMUrEebSe =E3Yg -----END PGP SIGNATURE-----
>From ded4dbff8229a50056a386abf2d362269b1dbc43 Mon Sep 17 00:00:00 2001 From: Dan Walsh <dwalsh@xxxxxxxxxx> Date: Wed, 9 Oct 2013 14:26:24 -0400 Subject: [PATCH 03/74] handle-unknown should be an optional argument --- checkpolicy/checkpolicy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkpolicy/checkpolicy.c b/checkpolicy/checkpolicy.c index 544f235..292f568 100644 --- a/checkpolicy/checkpolicy.c +++ b/checkpolicy/checkpolicy.c @@ -402,7 +402,7 @@ int main(int argc, char **argv) {"binary", no_argument, NULL, 'b'}, {"debug", no_argument, NULL, 'd'}, {"version", no_argument, NULL, 'V'}, - {"handle-unknown", optional_argument, NULL, 'U'}, + {"handle-unknown", required_argument, NULL, 'U'}, {"mls", no_argument, NULL, 'M'}, {"help", no_argument, NULL, 'h'}, {NULL, 0, NULL, 0} -- 1.8.3.1