pkgsrc/sysutils/dptutil/patches/patch-ak

22 lines
783 B
Text

$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) {