Use correct path when loading libnss{pem,ckbi}.so
authorSergio Durigan Junior <sergiodj@debian.org>
Sun, 5 Mar 2023 17:00:03 +0000 (12:00 -0500)
committerAquila Macedo Costa <aquilamacedo@riseup.net>
Tue, 17 Sep 2024 19:29:24 +0000 (16:29 -0300)
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=726073

Gbp-Pq: Name Use-correct-path-when-loading-libnss-pem-ckbi-.so.patch

lib/vtls/nss.c

index 774cbdd7ba5c0c2e6190fbcded8db97112d16e39..79994e058530cb65ad943ffefc92b1289bd420bd 100644 (file)
@@ -255,8 +255,12 @@ static const char *trust_library = "nssckbi.dll";
 static const char *pem_library = "libnsspem.dylib";
 static const char *trust_library = "libnssckbi.dylib";
 #else
-static const char *pem_library = "libnsspem.so";
-static const char *trust_library = "libnssckbi.so";
+#ifndef _DEB_HOST_ARCH
+#error "_DEB_HOST_ARCH must be defined"
+#endif
+
+static const char *pem_library = "/usr/lib/" _DEB_HOST_ARCH "/nss/libnsspem.so";
+static const char *trust_library = "/usr/lib/" _DEB_HOST_ARCH "/libnssckbi.so";
 #endif
 
 static SECMODModule *pem_module = NULL;