You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/screenie/files/screenie-CVE-2008-5371.patch

27 lines
636 B

Patch for bug 250476 (CVE-2008-5371), courtesy of nion@debian.org.
diff -u screenie-1.30.0/screenie screenie-1.30.0/screenie
--- screenie-1.30.0/screenie
+++ screenie-1.30.0/screenie
@@ -19,7 +19,7 @@
# Foundation Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
#global settings
-TMPF=/tmp/.screenie.$$
+TMPF=$(mktemp -t skreenie.XXXXXX || exit 1)
ACTIVE_SCREENS="screen \-ls | awk '/tached/ { print \$1}' | sort"
i=0
e=0
@@ -59,9 +59,9 @@
esac
#cleanup temp files
-if test -f /tmp/.screenie*
+if test -f $TMPF
then
- rm /tmp/.screenie* >/dev/null 2>&1
+ rm $TMPF >/dev/null 2>&1
fi
while :