From b3c77bdd0f4a51055de4cc36de7a1e74ae8c4e64 Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 3 Feb 2006 21:49:59 +0000 Subject: [PATCH] Create the shm mode 0666 so that this works with privsep X. Thanks matthieu@. --- games/sarien/patches/patch-src_graphics_x11_x11_c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 games/sarien/patches/patch-src_graphics_x11_x11_c diff --git a/games/sarien/patches/patch-src_graphics_x11_x11_c b/games/sarien/patches/patch-src_graphics_x11_x11_c new file mode 100644 index 00000000000..40901dcf161 --- /dev/null +++ b/games/sarien/patches/patch-src_graphics_x11_x11_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_graphics_x11_x11_c,v 1.1 2006/02/03 21:49:59 aaron Exp $ +--- src/graphics/x11/x11.c.orig Fri Feb 3 17:26:41 2006 ++++ src/graphics/x11/x11.c Fri Feb 3 17:25:30 2006 +@@ -631,7 +631,7 @@ + ASPECT_RATIO(GFX_HEIGHT) : GFX_HEIGHT) * scale); + + shminfo.shmid = shmget (IPC_PRIVATE, ximage->bytes_per_line * +- ximage->height, IPC_CREAT | 0600); ++ ximage->height, IPC_CREAT | 0666); + if (shminfo.shmid == -1) { + fprintf (stderr, + "x11: can't allocate X shared memory\n");