diff options
author | Csaba Henk <csaba.henk@creo.hu> | 2008-01-03 12:13:54 +0000 |
---|---|---|
committer | Csaba Henk <csaba.henk@creo.hu> | 2008-01-03 12:13:54 +0000 |
commit | 18ecc2bff8655a02bcf53b4aed1835d727f280ee (patch) | |
tree | 6269f58a431e0247a4b4621d82535054102cdeb8 /lib | |
parent | fdfba078f6bde0206bbcb16cd6dee999492bf6c3 (diff) |
lib/mount_bsd.c: Close device before unmount.
Cf. lib/mount.c rev. 1.43.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mount_bsd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mount_bsd.c b/lib/mount_bsd.c index a1c609d..09611c1 100644 --- a/lib/mount_bsd.c +++ b/lib/mount_bsd.c @@ -1,6 +1,6 @@ /* FUSE: Filesystem in Userspace - Copyright (C) 2005-2006 Csaba Henk <csaba.henk@creo.hu> + Copyright (C) 2005-2008 Csaba Henk <csaba.henk@creo.hu> This program can be distributed under the terms of the GNU LGPLv2. See the file COPYING.LIB. @@ -206,6 +206,7 @@ void fuse_unmount_compat22(const char *mountpoint) return; asprintf(&umount_cmd, "/sbin/umount %s", dev); + close(fd); system(umount_cmd); } @@ -229,6 +230,7 @@ void fuse_kern_unmount(const char *mountpoint, int fd) return; asprintf(&umount_cmd, "/sbin/umount " _PATH_DEV "%s", dev); + close(fd); system(umount_cmd); } |