Package: smbfs Version: 3.0.28-1~lenny1 Tags: patch The /sbin/mount.smbfs script fails to correctly handle spaces in share names, resulting in mount.cifs being passed two separate arguments instead of one quoted argument. The attached patch fixes this.
Julian
--- /sbin/mount.smbfs 2007-12-16 16:15:07.000000000 +0000 +++ /tmp/mount.smbfs 2007-12-19 20:52:57.000000000 +0000 @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Debian mount.smbfs compatibility wrapper # Copyright 2007, Steve Langasek <[EMAIL PROTECTED]> # Licensed under the GNU General Public License, version 2. See the @@ -83,7 +83,7 @@ echo $options } -args="" +args=() while [ "$#" -gt 0 ]; do case "$1" in -o*) @@ -95,11 +95,11 @@ fi arg="$(parse_mount_options "$arg")" if [ -n "$arg" ]; then - args="$args -o $arg" + args=("[EMAIL PROTECTED]" "-o" "$arg") fi ;; *) - args="$args $1" + args=("[EMAIL PROTECTED]" "$1") shift ;; esac @@ -107,4 +107,4 @@ USER="$(reverse_username_workgroup "$USER")" -exec /sbin/mount.cifs $args +exec /sbin/mount.cifs "[EMAIL PROTECTED]"