Received: from eggs.gnu.org ([208.118.235.92]:60936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIIkJ-0002yq-3W for qemu-devel@nongnu.org; Wed, 20 Mar 2013 09:08:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIIkF-0001I3-Lu for qemu-devel@nongnu.org; Wed, 20 Mar 2013 09:07:59 -0400 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:50073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIIkF-0001Hl-GB for qemu-devel@nongnu.org; Wed, 20 Mar 2013 09:07:55 -0400 Received: by mail-wi0-f176.google.com with SMTP id hm14so5255332wib.15 for ; Wed, 20 Mar 2013 06:07:54 -0700 (PDT) From: "=?UTF-8?q?Marc-Andr=C3=A9=20Lureau?=" Date: Wed, 20 Mar 2013 14:07:48 +0100 Message-Id: <1363784869-23061-1-git-send-email-marcandre.lureau@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] libcacard: remove sql: prefix List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , alevy@redhat.com, kraxel@redhat.com For some reason, with sql:/ prefix, the PKCS11 modules are not loaded. This patch goes on top of Alon smartcard series. --- libcacard/vcard_emul_nss.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libcacard/vcard_emul_nss.c b/libcacard/vcard_emul_nss.c index 6bad0b9..a0dd32d 100644 --- a/libcacard/vcard_emul_nss.c +++ b/libcacard/vcard_emul_nss.c @@ -898,7 +898,7 @@ vcard_emul_init(const VCardEmulOptions *options) if (options->nss_db) { rv = NSS_Init(options->nss_db); } else { - gchar *path, *db; + gchar *path; #ifndef _WIN32 path = g_strdup("/etc/pki/nssdb"); #else @@ -910,10 +910,8 @@ vcard_emul_init(const VCardEmulOptions *options) path = g_build_filename( g_get_system_config_dirs()[0], "pki", "nssdb", NULL); #endif - db = g_strdup_printf("sql:%s", path); - rv = NSS_Init(db); - g_free(db); + rv = NSS_Init(path); g_free(path); } if (rv != SECSuccess) { -- 1.8.1.1.439.g50a6b54