PATCH: small winelauncher problem

Marcus Meissner marcus at jet.franken.de
Sat Oct 1 07:11:08 CDT 2005


Hi,

LD_LIBRARY_PATH was used unsafely (empty entry means '.',
which might lead to loading of shared libraries out of the
current directory. Which you do not want.)

Ciao, Marcus

Changelog:
	Do not append empty ":" in LD_LIBRARY_PATH.

Index: programs/winelauncher.in
===================================================================
RCS file: /home/wine/wine/programs/winelauncher.in,v
retrieving revision 1.5
diff -u -r1.5 winelauncher.in
--- programs/winelauncher.in	10 Aug 2005 10:51:50 -0000	1.5
+++ programs/winelauncher.in	1 Oct 2005 12:09:57 -0000
@@ -195,7 +195,11 @@
 #------------------------------------------------------------------------------
 #  Okay, set the paths and move on.
 #------------------------------------------------------------------------------
-export LD_LIBRARY_PATH=$WINELIB:$LD_LIBRARY_PATH
+if [ -n "$LD_LIBRARY_PATH" ]; then
+	export LD_LIBRARY_PATH=$WINELIB:$LD_LIBRARY_PATH
+else
+	export LD_LIBRARY_PATH=$WINELIB
+fi
 export PATH=$WINEBIN:$PATH
 export WINELOADER=$WINEBIN/$WINE_BIN_NAME
 export WINEDLLPATH



More information about the wine-patches mailing list