-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
semanage_commit() returns -1 on error, and can return a positive
value on success.
https://bugzilla.redhat.com/show_bug.cgi?id=649037
We were sort of accidentally succeeding on modern versions of
libsemanage, because a change was introduced in recent versions that
broke the return value, so it was actually returning zero on success
(despite this being a violation of the API).
On older libsemanage (e.g that of Red Hat Enterprise Linux 5), we would
actually get the correct return value, which is a positive integer.
This patch will fix the problem on both systems, and I have reported the
return code regression as
https://bugzilla.redhat.com/show_bug.cgi?id=649482
- --
Stephen Gallagher
RHCE 804006346421761
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora -
http://enigmail.mozdev.org/
iEYEARECAAYFAkzUAFsACgkQeiVVYja6o6OKXACeLI7kIJkE94tnswGGZgg/wSeL
JVsAn01+2Pu7GmQ+t3u1udG3syIWs0Ma
=eBbo
-----END PGP SIGNATURE-----