PolicyKit: Branch 'master'
David Zeuthen
david at kemper.freedesktop.org
Fri May 15 12:59:25 PDT 2009
src/programs/pkexec-action-lookup.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 6bc9c8ff48fc4f7f9cbea8e4bfbe5a182852adf9
Author: David Zeuthen <davidz at redhat.com>
Date: Fri May 15 15:56:53 2009 -0400
Fix a bug where details were not shown for normal pkexec usage
diff --git a/src/programs/pkexec-action-lookup.c b/src/programs/pkexec-action-lookup.c
index 69b911f..4095c13 100644
--- a/src/programs/pkexec-action-lookup.c
+++ b/src/programs/pkexec-action-lookup.c
@@ -146,8 +146,9 @@ polkit_exec_action_lookup_get_details (PolkitBackendActionLookup *lookup,
ret = NULL;
- if (action_desc != NULL &&
- polkit_action_description_get_annotation (action_desc, "org.freedesktop.policykit.exec.path") == NULL)
+ if (!(g_strcmp0 (action_id, "org.freedesktop.policykit.exec") == 0 ||
+ (action_desc != NULL &&
+ polkit_action_description_get_annotation (action_desc, "org.freedesktop.policykit.exec.path") != NULL)))
goto out;
ret = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, g_free);
More information about the hal-commit
mailing list