-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5D7BMACgkQrlYvE4MpobNjywCeJtE0Ren4rVjChf3sXTk+dYan ey4An3uAJPT2BWlt/2CRbN95W5KhqtPP =3/DB -----END PGP SIGNATURE-----
>From fa70c4f2b8c5632b39c8992ed4c197f254a0e3b3 Mon Sep 17 00:00:00 2001 From: Eric Paris <eparis@xxxxxxxxxx> Date: Tue, 19 Jul 2011 11:27:14 -0400 Subject: [PATCH 45/96] policycoreutils: semanage: handle being called with no arguments Return quickly instead of tring to parse arguments if there are no arguments. Signed-off-by: Eric Paris <eparis@xxxxxxxxxx> --- policycoreutils/semanage/semanage | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/policycoreutils/semanage/semanage b/policycoreutils/semanage/semanage index 552e872..a0b5462 100644 --- a/policycoreutils/semanage/semanage +++ b/policycoreutils/semanage/semanage @@ -198,7 +198,9 @@ Object-specific Options (see above): locallist = False use_file = False store = "" - + + if len(argv) == 0: + return object = argv[0] option_dict=get_options() if object not in option_dict.keys(): -- 1.7.6
Attachment:
0045-policycoreutils-semanage-handle-being-called-with-no.patch.sig
Description: PGP signature