blob: d833c6ea95a0b0c9f94198ecc9c470ddc0bdda00 (
plain) (
tree)
|
|
diff -Naur nss-tls-1.1/nss-tls.c nss-tls-1.1.patched/nss-tls.c
--- nss-tls-1.1/nss-tls.c 2020-07-16 19:09:59.000000000 -0400
+++ nss-tls-1.1.patched/nss-tls.c 2024-01-17 15:57:03.989437314 -0500
@@ -68,7 +68,7 @@
if (geteuid() == 0)
strcpy(sun.sun_path, NSS_TLS_SOCKET_PATH);
else {
- dir = getenv("XDG_RUNTIME_DIR");
+ dir = getenv("HOME");
if (dir) {
len = strlen(dir);
if (len > sizeof(sun.sun_path) - sizeof("/"NSS_TLS_SOCKET_NAME))
@@ -77,6 +77,10 @@
memcpy(sun.sun_path, dir, len);
sun.sun_path[len] = '/';
++len;
+ memcpy(sun.sun_path + len, ".cache", 6);
+ len += 6;
+ sun.sun_path[len] = '/';
+ ++len;
strncpy(sun.sun_path + len,
NSS_TLS_SOCKET_NAME,
sizeof(sun.sun_path) - len);
|