-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This way if I say a command line semodule -r mypol -i newmypol and mypol was not there the semodule command does not error out. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAklsnb0ACgkQrlYvE4MpobNwFACfTqc17wREKC2aAhLOIkfbqgeg GxgAn2/ZBz5ljtyK1aiVkqoCBj98y9Ey =I4uX -----END PGP SIGNATURE-----
--- nsapolicycoreutils/semodule/semodule.c 2009-01-13 08:45:35.000000000 -0500 +++ policycoreutils-2.0.60/semodule/semodule.c 2009-01-06 08:56:37.000000000 -0500 @@ -359,6 +359,9 @@ mode_arg); } result = semanage_module_remove(sh, mode_arg); + if ( result == -2 ) { + continue; + } break; } case LIST_M:{