Cf. lib/mount.c rev. 1.43.
+2008-01-03 Csaba Henk <csaba.henk@creo.hu>
+
+ * lib/mount_bsd.c: close device before unmount
+ (cf. lib/mount.c rev. 1.43) and fix some warnings
+
2007-12-23 Miklos Szeredi <miklos@szeredi.hu>
* Fix './configure --disable-static'. Patch from Ismail Dönmez
/*
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.
return;
asprintf(&umount_cmd, "/sbin/umount %s", dev);
+ close(fd);
system(umount_cmd);
}
return;
asprintf(&umount_cmd, "/sbin/umount " _PATH_DEV "%s", dev);
+ close(fd);
system(umount_cmd);
}