From 3703170da763fe1d1ca0e41b578d3a06c016fbec Mon Sep 17 00:00:00 2001 From: nectar Date: Thu, 20 Dec 2001 19:18:58 +0000 Subject: When creating shared memory segments, make them readable/writable only by the owner. --- x11-toolkits/gtk12/Makefile | 2 +- x11-toolkits/gtk12/files/patch-gdk::gdkimage.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 x11-toolkits/gtk12/files/patch-gdk::gdkimage.c (limited to 'x11-toolkits/gtk12') 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) + { -- cgit