PATCH: winelauncher tmp file

Marcus Meissner marcus at jet.franken.de
Tue Aug 9 15:23:10 CDT 2005


Hi,

Trivial problem, now just using mktemp.

Ciao, Marcus

Changelog:
	Fixed harmless /tmp problem as reported in
	http://secunia.com/advisories/16352/.

Index: programs/winelauncher.in
===================================================================
RCS file: /home/wine/wine/programs/winelauncher.in,v
retrieving revision 1.4
diff -u -r1.4 winelauncher.in
--- programs/winelauncher.in	21 Jun 2004 23:56:15 -0000	1.4
+++ programs/winelauncher.in	9 Aug 2005 20:22:16 -0000
@@ -59,8 +59,8 @@
 if [ $? -ne 0 ] ; then
     # xmessage not found; make sure the user notices this error
     # (GUI users wouldn't even notice if we printed the text on console !)
-    MSGFILE=/tmp/WINE_CANNOT_FIND_XMESSAGE
-    cat > $MSGFILE << EOF
+    MSGFILE=`mktemp "/tmp/wine.xmessage.XXXXXX"`
+    cat > $MSGFILE <<EOF
 Warning:
     The Wine launcher is unable to find the xmessage program,
     which it needs to properly notify you of Wine execution status
@@ -87,6 +87,7 @@
 
     # ok, we really give up now, this system is hosed ;-)
     cat $MSGFILE
+    rm MSGFILE
 else
     XMESSAGE="xmessage $COLOR"
 fi
-- 



More information about the wine-patches mailing list