aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authorBenjamin Fleischer <fleiben@gmail.com>2013-08-03 11:50:50 +0200
committerBenjamin Fleischer <fleiben@gmail.com>2013-08-03 11:50:50 +0200
commit990f30d767063c086710ea52ad2c70237338434a (patch)
treed1fd89ef6f70bc54dea3aece4f96a42b194c0da3 /sshfs.c
parentd04fd55128d96a3f3de039c9df162211f482a0aa (diff)
parent61524cd1e85d076fe09f04ddd2871e026e1360cd (diff)
downloadsshfs-990f30d767063c086710ea52ad2c70237338434a.tar
sshfs-990f30d767063c086710ea52ad2c70237338434a.tar.gz
sshfs-990f30d767063c086710ea52ad2c70237338434a.tar.bz2
sshfs-990f30d767063c086710ea52ad2c70237338434a.zip
Merge remote-tracking branch 'upstream/master'
Conflicts: ChangeLog configure.ac sshfs.1.in sshfs.c
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sshfs.c b/sshfs.c
index 5658412..f0a1608 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -1697,7 +1697,7 @@ static int sftp_check_root(const char *base_path)
buf_init(&buf, 0);
buf_add_string(&buf, remote_dir);
buf_to_iov(&buf, &iov[0]);
- if (sftp_send_iov(SSH_FXP_STAT, id, iov, 1) == -1)
+ if (sftp_send_iov(SSH_FXP_LSTAT, id, iov, 1) == -1)
goto out;
buf_clear(&buf);
if (sftp_read(&type, &buf) == -1)
@@ -4019,6 +4019,10 @@ int main(int argc, char *argv[])
exit(1);
}
+ /*
+ * FIXME: trim $PATH so it doesn't contain anything inside the
+ * mountpoint, which would deadlock.
+ */
res = ssh_connect();
if (res == -1) {
fuse_unmount(mountpoint, ch);