summaryrefslogtreecommitdiff
path: root/sysutils/dptutil/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/dptutil/patches/patch-ak')
-rw-r--r--sysutils/dptutil/patches/patch-ak22
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/dptutil/patches/patch-ak b/sysutils/dptutil/patches/patch-ak
new file mode 100644
index 00000000000..ba5e4e59998
--- /dev/null
+++ b/sysutils/dptutil/patches/patch-ak
@@ -0,0 +1,22 @@
+$NetBSD: patch-ak,v 1.1 2003/01/27 23:39:03 ad Exp $
+
+--- dpteng/semaphor.c.orig Fri Dec 13 14:16:50 2002
++++ dpteng/semaphor.c Fri Dec 13 14:17:22 2002
+@@ -204,7 +204,7 @@
+ // Get the semaphore handle and create it if it isn't already there.
+ // Let other processes access it as well
+
+- rtnVal->semID = semget(key, 1, IPC_CREAT | S_IRWXU | S_IRWXG);
++ rtnVal->semID = semget(key, 1, IPC_CREAT | S_IRUSR | S_IWUSR);
+
+ if (rtnVal->semID == -1) {
+ if (Verbose)
+@@ -328,7 +328,7 @@
+
+ // Get the semaphore ID for the block of unnamed semaphores
+
+- LocalSemID = semget(key, MAX_LOCAL_SEM, IPC_CREAT);
++ LocalSemID = semget(key, MAX_LOCAL_SEM, IPC_CREAT | S_IWUSR | S_IRUSR);
+
+ if (LocalSemID == -1) {
+