$NetBSD: patch-ak,v 1.2 2011/05/22 19:11:42 dholland Exp $ - fix semget? --- 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) {