PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Thu Jul 15 07:03:33 PDT 2010


 src/polkitbackend/polkitbackendconfigsource.c            |    1 +
 src/polkitbackend/polkitbackendlocalauthorizationstore.c |    2 ++
 2 files changed, 3 insertions(+)

New commits:
commit 779c0153fc0bd3c2e302dac1979d17638f054229
Author: Petr Mrázek <peterix at gmail.com>
Date:   Wed Jul 14 02:59:12 2010 +0200

    Bug 29051 – Configuration reload on every query
    
    Set has_data to true after the data is loaded to prevent excessive
    reloading of config files.
    
    Signed-off-by: David Zeuthen <davidz at redhat.com>

diff --git a/src/polkitbackend/polkitbackendconfigsource.c b/src/polkitbackend/polkitbackendconfigsource.c
index 224d0d0..465da96 100644
--- a/src/polkitbackend/polkitbackendconfigsource.c
+++ b/src/polkitbackend/polkitbackendconfigsource.c
@@ -386,6 +386,7 @@ polkit_backend_config_source_ensure (PolkitBackendConfigSource *source)
     }
 
   source->priv->key_files = g_list_reverse (source->priv->key_files);
+  source->priv->has_data = TRUE;
 
  out:
   g_list_foreach (files, (GFunc) g_object_unref, NULL);
diff --git a/src/polkitbackend/polkitbackendlocalauthorizationstore.c b/src/polkitbackend/polkitbackendlocalauthorizationstore.c
index 5d5dc14..b959269 100644
--- a/src/polkitbackend/polkitbackendlocalauthorizationstore.c
+++ b/src/polkitbackend/polkitbackendlocalauthorizationstore.c
@@ -641,6 +641,8 @@ polkit_backend_local_authorization_store_ensure (PolkitBackendLocalAuthorization
       g_free (filename);
     }
 
+  store->priv->has_data = TRUE;
+
  out:
   g_list_foreach (files, (GFunc) g_object_unref, NULL);
   g_list_free (files);


More information about the hal-commit mailing list