From c8c38bc65263bee97ba19f42ed6f7ca236732e8d Mon Sep 17 00:00:00 2001 From: glenux Date: Fri, 20 Mar 2009 16:50:41 +0000 Subject: [PATCH] sshfs-mapper: .map parser was buggy with some kind of whitespaces git-svn-id: https://websvn.glenux.net/svn/Upoc/sshfs-mapper/trunk@1261 eaee96b3-f302-0410-b096-c6cfd47f7835 --- debian/changelog | 6 ++++++ sshfs-mapper | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 2193003..0942ec2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sshfs-mapper (0.1-4.3) unstable; urgency=low + + * .map parser was buggy with some kind of whitespaces. + + -- Fri, 20 Mar 2009 17:49:17 +0100 + sshfs-mapper (0.1-4.2) unstable; urgency=low * Changed interpreter to /bin/sh instead of /bin/bash . diff --git a/sshfs-mapper b/sshfs-mapper index 3069b83..555e6b7 100755 --- a/sshfs-mapper +++ b/sshfs-mapper @@ -23,8 +23,8 @@ SSHFS_HOSTS_SELECTION=0 read_conf() { local config=$1 local var=$2 - local value=`eval echo \`cat $config |grep "^$2=" |sed "s/$2=//"\`` - echo $value + local value="`eval echo \`cat $config |grep "^$2=" |sed "s/$2=//"\``" + echo "$value" } do_mount() {