From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Weber Subject: sshfs and target directory Date: Wed, 23 Dec 2009 00:11:25 +0100 Message-ID: <1261522601-sup-5290@nixos> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Marc Weber Cc: autofs summary: sshfs mounting user@host: works but user@host:/ does not. I had to apply this patch: diff --git a/modules/parse_sun.c b/modules/parse_sun.c index 65417e1..35d9edc 100644 --- a/modules/parse_sun.c +++ b/modules/parse_sun.c @@ -827,7 +827,7 @@ static int validate_location(char *loc) *ptr == '-' || *ptr == '.' || *ptr == '_' || *ptr == ',' || *ptr == '(' || *ptr == ')' || *ptr == '#' || *ptr == '@' || *ptr == ':' || - *ptr == '[' || *ptr == ']')) + *ptr == '[' || *ptr == ']' || *ptr == '/' )) return 0; ptr++; } in order to make this work which doesn't mount /root but / rootlap -fstype=fuse,rw,nodev,nonempty,noatime,max_read=65536,uid=1008,gid=100 \/nix\/store\/yfmbrb7d7hh9n6dyidypw7k1xcixxmmz-sshfs-wrapped\/bin/\sshfs-wrapped\#root@host\:\/ I'm not sure whether this is the perfect patch. Probably the problem is that the trailing :/ triggers check_colon to return 1 in validate_location which is then failing in the loop I patched above because "/" was not a valid character. Marc Weber