aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/gtk12
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2001-12-21 03:18:58 +0800
committernectar <nectar@FreeBSD.org>2001-12-21 03:18:58 +0800
commit3703170da763fe1d1ca0e41b578d3a06c016fbec (patch)
tree15b6646e610b5b66d7e4646c48f42d00231097f4 /x11-toolkits/gtk12
parent91aa58154f15d93f74c98dc19ba03b0b4a959c6b (diff)
downloadfreebsd-ports-gnome-3703170da763fe1d1ca0e41b578d3a06c016fbec.tar.gz
freebsd-ports-gnome-3703170da763fe1d1ca0e41b578d3a06c016fbec.tar.zst
freebsd-ports-gnome-3703170da763fe1d1ca0e41b578d3a06c016fbec.zip
When creating shared memory segments, make them readable/writable
only by the owner.
Diffstat (limited to 'x11-toolkits/gtk12')
-rw-r--r--x11-toolkits/gtk12/Makefile2
-rw-r--r--x11-toolkits/gtk12/files/patch-gdk::gdkimage.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/x11-toolkits/gtk12/Makefile b/x11-toolkits/gtk12/Makefile
index b73b644b4f5b..03931acaba02 100644
--- a/x11-toolkits/gtk12/Makefile
+++ b/x11-toolkits/gtk12/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gtk
PORTVERSION= 1.2.10
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/gtk+
diff --git a/x11-toolkits/gtk12/files/patch-gdk::gdkimage.c b/x11-toolkits/gtk12/files/patch-gdk::gdkimage.c
new file mode 100644
index 000000000000..ba18a62305b7
--- /dev/null
+++ b/x11-toolkits/gtk12/files/patch-gdk::gdkimage.c
@@ -0,0 +1,11 @@
+--- gdk/gdkimage.c.orig Wed Dec 19 08:39:12 2001
++++ gdk/gdkimage.c Wed Dec 19 08:39:19 2001
+@@ -213,7 +213,7 @@
+
+ x_shm_info->shmid = shmget (IPC_PRIVATE,
+ private->ximage->bytes_per_line * private->ximage->height,
+- IPC_CREAT | 0777);
++ IPC_CREAT | SHM_R | SHM_W);
+
+ if (x_shm_info->shmid == -1)
+ {