From: Csaba Henk Date: Thu, 3 Jan 2008 12:13:54 +0000 (+0000) Subject: lib/mount_bsd.c: Close device before unmount. X-Git-Tag: fuse_2_8_start~9 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=18ecc2bff8655a02bcf53b4aed1835d727f280ee;p=qemu-gpiodev%2Flibfuse.git lib/mount_bsd.c: Close device before unmount. Cf. lib/mount.c rev. 1.43. --- diff --git a/ChangeLog b/ChangeLog index 828837a..1ba2a5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-03 Csaba Henk + + * lib/mount_bsd.c: close device before unmount + (cf. lib/mount.c rev. 1.43) and fix some warnings + 2007-12-23 Miklos Szeredi * Fix './configure --disable-static'. Patch from Ismail Dönmez 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 + Copyright (C) 2005-2008 Csaba Henk 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); }