aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2013-02-05 12:33:36 +0100
committerMiklos Szeredi <mszeredi@suse.cz>2013-02-05 12:33:36 +0100
commit9f4ba56b526db562abc67d62f502fa2858587b43 (patch)
tree3c5866fb50319f90aea53f76a7052866a5fbc56e
parentce6753c88f1d06e537d8f04bc5caf4a87749386c (diff)
downloadsshfs-9f4ba56b526db562abc67d62f502fa2858587b43.tar
sshfs-9f4ba56b526db562abc67d62f502fa2858587b43.tar.gz
sshfs-9f4ba56b526db562abc67d62f502fa2858587b43.tar.bz2
sshfs-9f4ba56b526db562abc67d62f502fa2858587b43.zip
Add FIXME for deadlock if $PATH contains mountpoint.
Reported by Joachim Kopp
-rw-r--r--sshfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sshfs.c b/sshfs.c
index 4945302..125a368 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3863,6 +3863,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);