summaryrefslogtreecommitdiff
path: root/app-misc/screenie/files/screenie-CVE-2008-5371.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/screenie/files/screenie-CVE-2008-5371.patch
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/screenie/files/screenie-CVE-2008-5371.patch')
-rw-r--r--app-misc/screenie/files/screenie-CVE-2008-5371.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/app-misc/screenie/files/screenie-CVE-2008-5371.patch b/app-misc/screenie/files/screenie-CVE-2008-5371.patch
new file mode 100644
index 000000000000..2bf8dbdc6b8a
--- /dev/null
+++ b/app-misc/screenie/files/screenie-CVE-2008-5371.patch
@@ -0,0 +1,26 @@
+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 :