1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

Patch dcopidl to not create output in /tmp.

Security: Fixes CAN-2005-0365 / 29dd0065-81fa-11d9-a9e7-0001020eed82

Obtained from: KDE CVS
This commit is contained in:
Michael Nottebrock 2005-02-23 16:10:02 +00:00
parent 2a1b890d2b
commit da33fe0579
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129609
4 changed files with 34 additions and 2 deletions

View File

@ -8,7 +8,7 @@
PORTNAME= kdelibs
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src

View File

@ -0,0 +1,16 @@
--- dcop/dcopidlng/dcopidlng Sat May 22 22:55:01 2004
+++ dcop/dcopidlng/dcopidlng Sun Feb 20 21:49:47 2005
@@ -1,9 +1,12 @@
#!/bin/sh
+
+trap "rm -f dcopidlng.stderr.$$"
+
if test -z "$KDECONFIG"; then
KDECONFIG=kde-config
fi
LIBDIR="`$KDECONFIG --install data --expandvars`/dcopidlng"
-perl -I"$LIBDIR" "$LIBDIR/kalyptus" --allow_k_dcop_accessors -f dcopidl $1 2>/tmp/dcopidlng.stderr.$$
+perl -I"$LIBDIR" "$LIBDIR/kalyptus" --allow_k_dcop_accessors -f dcopidl $1 2> dcopidlng.stderr.$$
RET=$?
if [ $RET -ne 0 ]
then

View File

@ -8,7 +8,7 @@
PORTNAME= kdelibs
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src

View File

@ -0,0 +1,16 @@
--- dcop/dcopidlng/dcopidlng Sat May 22 22:55:01 2004
+++ dcop/dcopidlng/dcopidlng Sun Feb 20 21:49:47 2005
@@ -1,9 +1,12 @@
#!/bin/sh
+
+trap "rm -f dcopidlng.stderr.$$"
+
if test -z "$KDECONFIG"; then
KDECONFIG=kde-config
fi
LIBDIR="`$KDECONFIG --install data --expandvars`/dcopidlng"
-perl -I"$LIBDIR" "$LIBDIR/kalyptus" --allow_k_dcop_accessors -f dcopidl $1 2>/tmp/dcopidlng.stderr.$$
+perl -I"$LIBDIR" "$LIBDIR/kalyptus" --allow_k_dcop_accessors -f dcopidl $1 2> dcopidlng.stderr.$$
RET=$?
if [ $RET -ne 0 ]
then