fuse/fuse-fix-cleanup-in-case-of-failed-mount.patch

17 lines
539 B
Diff
Raw Normal View History

---
util/fusermount.c | 1 -
1 file changed, 1 deletion(-)
Index: fuse-2.7.2/util/fusermount.c
===================================================================
--- fuse-2.7.2.orig/util/fusermount.c 2011-02-21 17:30:34.000000000 +0100
+++ fuse-2.7.2/util/fusermount.c 2011-02-21 17:31:11.682067022 +0100
@@ -770,7 +770,6 @@ static int mount_fuse(const char *mnt, c
if (geteuid() == 0) {
res = add_mount(source, mnt, type, mnt_opts);
if (res == -1) {
- umount2(mnt, 2); /* lazy umount */
close(fd);
return -1;
}