From 2431a280eb7612920a7158d72c1d34964b801445 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 15 Jul 2009 15:08:55 +0000 Subject: tear down mount on connect failure --- sshfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sshfs.c b/sshfs.c index cc29799..2455fff 100644 --- a/sshfs.c +++ b/sshfs.c @@ -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); -- cgit v1.2.3