openbsd-ports/graphics/gimp/patches/patch-configure
todd a6cb679b16 SECURITY wrt shmget()
request from brad@; found by David Fries <dfries@mail.win.org>
2002-06-14 17:18:06 +00:00

26 lines
772 B
Plaintext

$OpenBSD: patch-configure,v 1.5 2002/06/14 17:18:06 todd Exp $
--- configure.orig Thu Jul 26 13:13:35 2001
+++ configure Wed Jun 12 09:14:58 2002
@@ -5297,7 +5297,7 @@ else
{
int id;
char *shmaddr;
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0777);
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
if (id == -1)
exit (2);
shmaddr = shmat (id, 0, 0);
@@ -7116,9 +7116,9 @@ fi
fi
-gimpdatadir=$datadir/$PACKAGE/$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION
-gimpplugindir=$libdir/$PACKAGE/$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION
-gimpsysconfdir=$sysconfdir/$PACKAGE/$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION
+gimpdatadir=$datadir/$PACKAGE
+gimpplugindir=$libdir/$PACKAGE
+gimpsysconfdir=$sysconfdir/$PACKAGE
localedir='${prefix}/${DATADIRNAME}/locale'