diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2011-03-11 13:51:49 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2011-03-11 13:51:49 +0100 |
commit | d6bec4020fddd4dd67248789a1af600580f2cbda (patch) | |
tree | bdba137d1e58efe1d7eccc6950ecec3c7092026b /util | |
parent | 2250aae7bca132006081b51b46c240759240a680 (diff) |
In case of failure to add to /etc/mtab don't umount.
Reported by Marc Deslauriers
Diffstat (limited to 'util')
-rw-r--r-- | util/fusermount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/fusermount.c b/util/fusermount.c index 48f23fa..cd8a9c3 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -1082,7 +1082,7 @@ static int mount_fuse(const char *mnt, const char *opts) if (geteuid() == 0) { res = add_mount(source, mnt, type, mnt_opts); if (res == -1) { - umount2(mnt, UMOUNT_DETACH); /* lazy umount */ + /* Can't clean up mount in a non-racy way */ close(fd); return -1; } |