From e3828639747c5ec68a8d466ced9945cd2a3ea8d7 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Wed, 25 Feb 2009 15:31:27 +0000 Subject: Fixes for the smb/cifs mount function. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2641 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/stage3-stuff/etc/functions | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/initramfs/stage3-stuff/etc/functions b/initramfs/stage3-stuff/etc/functions index 84140b94..5b8b2112 100644 --- a/initramfs/stage3-stuff/etc/functions +++ b/initramfs/stage3-stuff/etc/functions @@ -120,8 +120,8 @@ fi case "$2" in prot) echo "$prot" ;; server) echo "$server" ;; - # add '::' again to path, ticket #232 - path) echo "$path" | sed -e 's,§§§§§,\:\:,g' ;; + # add '::' again to path, remove duplicate "//" + path) echo "$path" | sed -e 's,§§§§§,\:\:,g;s,//,/,' ;; port) echo "$port" ;; query) echo "$query" ;; esac @@ -160,8 +160,8 @@ case "${proto}" in done ;; smb|cifs) - mount -n -t ${proto} -o ${mntopt},user=guest,guest \ - //${server}/${srcpath} ${target} + mount -n -o ${mntopt},user=guest,guest,file_mode=0755,dir_mode=0755 \ + -t ${proto} //${server}${srcpath} ${target} ;; esac } -- cgit v1.2.3-55-g7522