summaryrefslogtreecommitdiff
path: root/gck/gck-modules.c
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2010-12-06 20:59:48 +0000
committerStef Walter <stefw@collabora.co.uk>2010-12-06 20:59:48 +0000
commitf397c297c7a150eadfb4d1ab29d13a15cbadbf60 (patch)
treefd258dbb0c2bd8afb7b7639eefabaf3be8cf5323 /gck/gck-modules.c
parent4d1f1393f839493cd4853e399a5e0db1a11cb527 (diff)
downloadgnome-keyring-f397c297c7a150eadfb4d1ab29d13a15cbadbf60.tar.gz
[gck] Don't load *.la files as PKCS#11 modules.
grumble, grumble, libtool, grumble.
Diffstat (limited to 'gck/gck-modules.c')
-rw-r--r--gck/gck-modules.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gck/gck-modules.c b/gck/gck-modules.c
index d05a5f05..a5b0b46d 100644
--- a/gck/gck-modules.c
+++ b/gck/gck-modules.c
@@ -73,6 +73,10 @@ gck_modules_list_registered_paths (GError **err)
if (!name)
break;
+ /* HACK: libtool can bite my shiny metal ass */
+ if (g_str_has_suffix (name, ".la"))
+ continue;
+
path = g_build_filename (PKCS11_REGISTRY_DIR, name, NULL);
if (g_file_test (path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
g_array_append_val (paths, path);