policy files now have the .policy extension, not .priv
authorDavid Zeuthen <davidz@redhat.com>
Sun, 8 Apr 2007 23:38:02 +0000 (19:38 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Sun, 8 Apr 2007 23:38:02 +0000 (19:38 -0400)
libpolkit/libpolkit-context.c
libpolkit/libpolkit-policy-cache.c

index 3ea7fd3..205bea3 100644 (file)
@@ -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);
                 }
         }
 
index d9eb31b..a2c8d4a 100644 (file)
@@ -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, "."))