From: Marc Weber <marco-oweber@gmx.de>
To: Marc Weber <marco-oweber@gmx.de>
Cc: autofs <autofs@linux.kernel.org>
Subject: sshfs and target directory
Date: Wed, 23 Dec 2009 00:11:25 +0100 [thread overview]
Message-ID: <1261522601-sup-5290@nixos> (raw)
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
next reply other threads:[~2009-12-22 23:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-22 23:11 Marc Weber [this message]
2009-12-23 14:35 ` sshfs and target directory Ian Kent
[not found] ` <1261585222-sup-7226@nixos>
[not found] ` <4B324E86.8040708@themaw.net>
2009-12-23 17:21 ` Marc Weber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1261522601-sup-5290@nixos \
--to=marco-oweber@gmx.de \
--cc=autofs@linux.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.