summaryrefslogtreecommitdiff
path: root/sysutils/dptutil/patches/patch-ak
blob: ba5e4e5999859ba566cf59d81e658296d9f9eae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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) {