[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[pkg-wine-party] Bug#736986: /usr/bin/winecfg: /usr/bin/winecfg: error with "complex" WINEPREFIX



Package: wine
Version: 1.6.2-5
Severity: normal
File: /usr/bin/winecfg

Dear Maintainer,

On /usr/bin/winecfg, line 26, you do not use quote to protect variables.
If WINEPREFIX contains a blank, the test fails.

Below is a patch that fix the problem

Thanks!

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages wine depends on:
ii  file    1:5.14-2
ii  wine32  1.6.2-5
ii  wine64  1.6.2-5

wine recommends no packages.

Versions of packages wine suggests:
pn  avscan | klamav | clamav   <none>
pn  binfmt-support             <none>
pn  ttf-mscorefonts-installer  <none>
pn  winbind                    <none>
pn  wine-doc                   <none>

-- no debconf information

*** /tmp/test/winecfg.patch
--- old	2014-01-29 00:01:08.507656657 +0100
+++ new	2014-01-29 00:02:04.364400459 +0100
@@ -23,10 +23,10 @@
 appname=`basename "$0" .exe`.exe
 
 if test -z $WINEARCH; then
-    test ! -z $WINEPREFIX || WINEPREFIX="$HOME/.wine"
-    wine=$(cat $WINEPREFIX/system.reg | grep ^\#arch= | cut -d= -f2 | sed s/win/wine/)
+    test ! -z "$WINEPREFIX" || WINEPREFIX="$HOME/.wine"
+    wine=$(cat "$WINEPREFIX"/system.reg | grep ^\#arch= | cut -d= -f2 | sed s/win/wine/)
 else
-    wine=$(echo $WINEARCH | sed s/win/wine/)
+    wine=$(echo "$WINEARCH" | sed s/win/wine/)
 fi
 
 exec $wine "$appname" "$@"



Reply to: