From: David Zeuthen Date: Sun, 8 Apr 2007 23:38:02 +0000 (-0400) Subject: policy files now have the .policy extension, not .priv X-Git-Tag: POLICY_KIT_0_3~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee531eefb45fd362c8aa3e8cb395549dda50f446;p=platform%2Fupstream%2Fpolkit.git policy files now have the .policy extension, not .priv --- diff --git a/libpolkit/libpolkit-context.c b/libpolkit/libpolkit-context.c index 3ea7fd3..205bea3 100644 --- a/libpolkit/libpolkit-context.c +++ b/libpolkit/libpolkit-context.c @@ -285,7 +285,7 @@ libpolkit_context_init (PolKitContext *pk_context, GError **error) /* don't populate the cache until it's needed.. */ if (pk_context->file_monitor_add_watch_func == NULL) { - _pk_debug ("No file monitor; cannot monitor '%s' for .priv file changes", dirname); + _pk_debug ("No file monitor; cannot monitor '%s' for .policy file changes", pk_context->policy_dir); } else { /* Watch when policy definitions file change */ pk_context->file_monitor_add_watch_func (pk_context, @@ -425,7 +425,7 @@ libpolkit_context_get_policy_cache (PolKitContext *pk_context) pk_context->policy_dir, error->message); g_error_free (error); } else { - /*libpolkit_policy_cache_debug (pk_context->priv_cache)*/; + libpolkit_policy_cache_debug (pk_context->priv_cache); } } diff --git a/libpolkit/libpolkit-policy-cache.c b/libpolkit/libpolkit-policy-cache.c index d9eb31b..a2c8d4a 100644 --- a/libpolkit/libpolkit-policy-cache.c +++ b/libpolkit/libpolkit-policy-cache.c @@ -107,7 +107,7 @@ libpolkit_policy_cache_new (const char *dirname, GError **error) char *path; PolKitPolicyFile *pf; - if (!g_str_has_suffix (file, ".priv")) + if (!g_str_has_suffix (file, ".policy")) continue; if (g_str_has_prefix (file, "."))