diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2009-07-15 15:08:55 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2009-07-15 15:08:55 +0000 |
commit | 2431a280eb7612920a7158d72c1d34964b801445 (patch) | |
tree | fe90e04b02f7b1cafcd9b5f5236b0bd0e889412a | |
parent | 0eabd863007642ab2e22a7aab72345c32db94822 (diff) | |
download | sshfs-2431a280eb7612920a7158d72c1d34964b801445.tar sshfs-2431a280eb7612920a7158d72c1d34964b801445.tar.gz sshfs-2431a280eb7612920a7158d72c1d34964b801445.tar.bz2 sshfs-2431a280eb7612920a7158d72c1d34964b801445.zip |
tear down mount on connect failure
-rw-r--r-- | sshfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3310,8 +3310,10 @@ int main(int argc, char *argv[]) exit(1); res = ssh_connect(); - if (res == -1) + if (res == -1) { + fuse_teardown(fuse, mountpoint); exit(1); + } if (multithreaded) res = fuse_loop_mt(fuse); |