Package: smb4k Version: 0.5.1-1 Severity: normal Tags: patch Program fails to quote password properly when calling smbmount. If password contains special characters like '(' - as every password should :-> - then mounting fails. Patch fixing the issue is attached.
-- System Information: Debian Release: 3.1 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.10-1-686 Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2) (ignored: LC_ALL set to pl_PL) Versions of packages smb4k depends on: ii kdelibs4 4:3.3.2-1 KDE core libraries ii libart-2.0-2 2.3.17-1 Library of functions for 2D graphi ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libfam0c102 2.7.0-6 client library to control the FAM ii libgcc1 1:3.4.3-6 GCC support library ii libice6 4.3.0.dfsg.1-10 Inter-Client Exchange library ii libidn11 0.5.2-3 GNU libidn library, implementation ii libpng12-0 1.2.8rel-1 PNG library - runtime ii libqt3c102-mt 3:3.3.3-8 Qt GUI Library (Threaded runtime v ii libsm6 4.3.0.dfsg.1-10 X Window System Session Management ii libstdc++5 1:3.3.5-8 The GNU Standard C++ Library v3 ii libx11-6 4.3.0.dfsg.1-10 X Window System protocol client li ii libxext6 4.3.0.dfsg.1-10 X Window System miscellaneous exte ii libxrender1 0.8.3-7 X Rendering Extension client libra ii samba-common 3.0.10-1 Samba common files used by both th ii smbclient 3.0.10-1 a LanManager-like simple client fo ii smbfs 3.0.10-1 mount and umount commands for the ii xlibs 4.3.0.dfsg.1-10 X Keyboard Extension (XKB) configu ii zlib1g 1:1.2.2-3 compression library - runtime -- no debconf information
diff -u -r -i smb4k-0.5.1/smb4k/core/smb4kmounter.cpp smb4k-0.5.1.new/smb4k/core/smb4kmounter.cpp --- smb4k-0.5.1/smb4k/core/smb4kmounter.cpp 2005-01-29 13:20:31.000000000 +0100 +++ smb4k-0.5.1.new/smb4k/core/smb4kmounter.cpp 2005-02-22 17:02:38.000000000 +0100 @@ -620,7 +620,7 @@ // We want to allow empty passwords: if ( !auth->plainPassword().isEmpty() ) { - command.append( QString( "password=%1" ).arg( auth->maskedPassword() ) ); + command.append( QString( "password='%1'" ).arg( auth->maskedPassword() ) ); } } else