blob: 2bf8dbdc6b8a3481e67c0ac373b10f5fde4f2a06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 :
|