summaryrefslogtreecommitdiff
path: root/security/opencryptoki/files/patch-usr-lib-common-shared_memory.c
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2022-05-06 17:31:40 +0900
committerHiroki Sato <hrs@FreeBSD.org>2022-05-06 17:32:09 +0900
commitcd09274aa2c59b5a06508ed00bf5bded7b7b6213 (patch)
tree9089f1274785e194391aa2e01883fa0e37af02e2 /security/opencryptoki/files/patch-usr-lib-common-shared_memory.c
parentpackage: fix inverted logic (diff)
security/opencryptoki: update to 3.18.0
Diffstat (limited to 'security/opencryptoki/files/patch-usr-lib-common-shared_memory.c')
-rw-r--r--security/opencryptoki/files/patch-usr-lib-common-shared_memory.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/security/opencryptoki/files/patch-usr-lib-common-shared_memory.c b/security/opencryptoki/files/patch-usr-lib-common-shared_memory.c
new file mode 100644
index 000000000000..ed1caae32ede
--- /dev/null
+++ b/security/opencryptoki/files/patch-usr-lib-common-shared_memory.c
@@ -0,0 +1,15 @@
+--- 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;
+ }