opnsense-ports/security/opencryptoki/files/patch-usr-lib-common-shared_memory.c
Franco Fichtner d7ea8b4eef */*: sync with upstream
Taken from: FreeBSD
2022-05-10 14:54:30 +02:00

15 lines
494 B
C

--- usr/lib/common/shared_memory.c.orig 2022-04-25 11:04:51 UTC
+++ usr/lib/common/shared_memory.c
@@ -172,10 +172,10 @@ int sm_open(const char *sm_name, int mode, void **p_ad
goto done;
}
- grp = getgrnam("pkcs11");
+ grp = getgrnam(PKCS11GROUP);
if (!grp) {
rc = -errno;
- SYS_ERROR(errno, "getgrname(\"pkcs11\"): %s\n",
+ SYS_ERROR(errno, "getgrname(\"" PKCS11GROUP "\"): %s\n",
strerror(errno));
goto done;
}