projects
/
platform
/
upstream
/
polkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb41779
)
Fix a bug where details were not shown for normal pkexec usage
author
David Zeuthen
<davidz@redhat.com>
Fri, 15 May 2009 19:56:53 +0000
(15:56 -0400)
committer
David Zeuthen
<davidz@redhat.com>
Fri, 15 May 2009 19:56:53 +0000
(15:56 -0400)
src/programs/pkexec-action-lookup.c
patch
|
blob
|
history
diff --git
a/src/programs/pkexec-action-lookup.c
b/src/programs/pkexec-action-lookup.c
index
69b911f
..
4095c13
100644
(file)
--- 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);