diff options
Diffstat (limited to 'sysutils/ups-nut/patches/patch-ae')
-rw-r--r-- | sysutils/ups-nut/patches/patch-ae | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sysutils/ups-nut/patches/patch-ae b/sysutils/ups-nut/patches/patch-ae index d4821a06a1c..ad051ff2d52 100644 --- a/sysutils/ups-nut/patches/patch-ae +++ b/sysutils/ups-nut/patches/patch-ae @@ -1,18 +1,23 @@ -$NetBSD: patch-ae,v 1.1 2001/03/11 13:46:12 martin Exp $ +$NetBSD: patch-ae,v 1.2 2001/04/01 14:04:37 martin Exp $ --- models/upscommon.c.orig Tue Feb 27 07:01:46 2001 -+++ models/upscommon.c Sun Mar 11 14:08:48 2001 -@@ -555,11 +555,11 @@ ++++ models/upscommon.c Sun Apr 1 15:59:54 2001 +@@ -555,11 +555,16 @@ #ifdef HAVE_SHMAT test_writeinfo(); -/* some systems (NetBSD) don't define SHM_R and SHM_W - they default to it */ -+/* some systems (NetBSD) don't define SHM_R and SHM_W */ ++/* ++ * The use of SHM_R and SHM_W is not portable. Neither Posix nor ++ * SUSv2 specify it. Solaris and Linux have them (as well as newer ++ * versions of NetBSD) but either do not document them (Solaris) or ++ * explicitly depreceate their use (NetBSD). ++ */ #ifdef SHM_R #define IPC_MODE IPC_CREAT|SHM_R|SHM_W|S_IRGRP|S_IWGRP #else -#define IPC_MODE IPC_CREAT -+#define IPC_MODE IPC_CREAT|0700 ++#define IPC_MODE IPC_CREAT|0600|S_IRGRP|S_IWGRP #endif if (shmok == 1) { |