PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Tue Jun 19 18:50:50 PDT 2007


 polkit-grant/polkit-grant-database.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

New commits:
diff-tree 8afbda8b8ea35fa5992541d420c37c1d6ca98724 (from 8d3b0c22751514312ad4f4f9c85c3070ebcef54e)
Author: David Zeuthen <davidz at redhat.com>
Date:   Tue Jun 19 21:50:48 2007 -0400

    fix small typo so _keep_always granting works again

diff --git a/polkit-grant/polkit-grant-database.c b/polkit-grant/polkit-grant-database.c
index c6f96de..71feea7 100644
--- a/polkit-grant/polkit-grant-database.c
+++ b/polkit-grant/polkit-grant-database.c
@@ -198,7 +198,7 @@ _polkit_grantdb_write_keep_always (const
         char *grant_file;
         polkit_bool_t ret = FALSE;
 
-        grant_file = g_strdup_printf (PACKAGE_LOCALSTATE_DIR "/lib/PolicyKit/uid%d/%s.grant", 
+        grant_file = g_strdup_printf (PACKAGE_LOCALSTATE_DIR "/lib/PolicyKit/uid%d-%s.grant", 
                                       getuid(), action_id);
         if (grant_file == NULL) {
                 fprintf (stderr, "Out of memory\n");
@@ -283,7 +283,7 @@ _polkit_grantdb_check_can_caller_do_acti
 
         /* finally, check what _keep_always may have left */
         if (session_objpath != NULL) {
-                grant_file = g_strdup_printf (PACKAGE_LOCALSTATE_DIR "/lib/PolicyKit/uid%d/%s.grant", 
+                grant_file = g_strdup_printf (PACKAGE_LOCALSTATE_DIR "/lib/PolicyKit/uid%d-%s.grant", 
                                               invoking_user_id, action_id);
                 if (grant_file == NULL) {
                         fprintf (stderr, "Out of memory\n");


More information about the hal-commit mailing list