PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Tue Nov 20 19:47:13 PST 2007


 src/polkit/polkit-authorization.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 19e6c05ea7ccdbe08a76d797ce25b01130adf2a4
Author: David Zeuthen <davidz at redhat.com>
Date:   Tue Nov 20 22:46:50 2007 -0500

    fix 'make check-coverage'

diff --git a/src/polkit/polkit-authorization.c b/src/polkit/polkit-authorization.c
index 5163dd4..7dec310 100644
--- a/src/polkit/polkit-authorization.c
+++ b/src/polkit/polkit-authorization.c
@@ -744,6 +744,7 @@ _run_test (void)
         const char *s;
         PolKitAuthorizationConstraint *ac;
         uid_t uid;
+        polkit_bool_t is_neg;
 
         for (n = 0; n < num_valid_auths; n++) {
                 PolKitAuthorization *a;
@@ -783,10 +784,11 @@ _run_test (void)
 
                         if (t->explicit) {
                                 kit_assert (!polkit_authorization_was_granted_via_defaults (a, &uid));
-                                kit_assert (polkit_authorization_was_granted_explicitly (a, &uid) && uid == t->from);
+                                kit_assert (polkit_authorization_was_granted_explicitly (a, &uid, &is_neg) && 
+                                            uid == t->from && !is_neg);
                         } else {
                                 kit_assert (polkit_authorization_was_granted_via_defaults (a, &uid) && uid == t->from);
-                                kit_assert (!polkit_authorization_was_granted_explicitly (a, &uid));
+                                kit_assert (!polkit_authorization_was_granted_explicitly (a, &uid, &is_neg));
                         }
 
                         polkit_authorization_ref (a);


More information about the hal-commit mailing list