Package: usb-modeswitch
Version: 1.1.7-1
Severity: normal

The /usr/sbin/usb_modeswitch_dispatcher script has such bugs that the
documented feature of overriding configs via /etc/usb-modeswitch.d could not
possibly work. Attached patch fixes this feature.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (300, 'experimental'), (90, 'oneiric')
Architecture: amd64 (x86_64)

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

Versions of packages usb-modeswitch depends on:
ii  dpkg                         1.16.0.3    Debian package management system
ii  libc6                        2.13-4      Embedded GNU C Library: Shared lib
ii  libusb-0.1-4                 2:0.1.12-17 userspace USB programming library
ii  tcl                          8.5.0-2     The Tool Command Language (default
ii  tcl8.4 [tclsh]               8.4.19-4    Tcl (the Tool Command Language) v8
ii  tcl8.5 [tclsh]               8.5.9-2     Tcl (the Tool Command Language) v8
ii  usb-modeswitch-data          20110227-2  mode switching data for usb-modesw

usb-modeswitch recommends no packages.

Versions of packages usb-modeswitch suggests:
pn  comgt                         <none>     (no description available)
pn  wvdial                        <none>     (no description available)

-- Configuration Files:
/etc/usb_modeswitch.conf changed:
DisableSwitching=0
EnableLogging=1


-- no debconf information
--- usb_modeswitch_dispatcher.orig      2011-03-16 14:04:26.000000000 +0100
+++ usb_modeswitch_dispatcher   2011-06-10 18:30:29.000000000 +0200
@@ -571,10 +571,10 @@
                        }
                        set configList [split $configList \n]
                        Log "Searching overriding entries named: 
$settings(dbdir_etc)/$config*"
-                       append configList [glob -nocomplain 
$settings(dbdir_etc)/$config*]
+                       append configList " " [glob -nocomplain -tails 
-directory $settings(dbdir_etc) $config*]
                        set configList [lsearch -glob -all -inline $configList 
$config*]
                } else {
-                       set configList [glob -nocomplain 
$settings(dbdir)/$config*]
+                       set configList [glob -nocomplain -tails -directory 
$settings(dbdir_etc) $config*]
                }
 
                return $configList

Reply via email to