Commit 339a8b62 authored by David Zeuthen's avatar David Zeuthen

really ignore privilege files starting with "." this time

Also avoid dumping all privilege file entries to debug whenever we
populate our privilege cache.
parent 6d42a047
......@@ -257,7 +257,7 @@ libpolkit_context_get_privilege_cache (PolKitContext *pk_context)
pk_context->priv_dir, error->message);
g_error_free (error);
} else {
libpolkit_privilege_cache_debug (pk_context->priv_cache);
/*libpolkit_privilege_cache_debug (pk_context->priv_cache)*/;
}
}
......
......@@ -111,7 +111,7 @@ libpolkit_privilege_cache_new (const char *dirname, GError **error)
if (!g_str_has_suffix (file, ".priv"))
continue;
if (g_str_has_suffix (file, "."))
if (g_str_has_prefix (file, "."))
continue;
path = g_strdup_printf ("%s/%s", dirname, file);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment