aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mount_util.c
AgeCommit message (Collapse)AuthorLines
2016-12-23Set IGNORE_MTAB when running under NetBSDNikolaus Rath-1/+4
Apparently, NetBSD does not have /etc/mtab. Setting IGNORE_MTAB in this case makes the code a little nicer. See also https://github.com/libfuse/libfuse/pull/123
2016-10-15Removed -o nonempty optionNikolaus Rath-33/+0
This brings the default behavior in-line with that of the regular `mount` command.
2016-10-02Extended per-file comments.Nikolaus Rath-0/+2
This should make more clear what file contains code for what purpose.
2016-07-21add error checking to setuid calls (#66)Alex Richman-3/+21
2015-05-22libfuse: fix exec environment for mount and umountMiklos Szeredi-6/+17
Found by Tavis Ormandy (CVE-2015-3202).
2013-08-26Merge remote-tracking branch 'origin/fuse_2_9_bugfix'Miklos Szeredi-0/+1
2013-08-26Add missing includesDaniel Thau-0/+1
This allows compiling fuse with musl.
2013-07-24libfuse: remove "-D_FILE_OFFSET_BITS=64" from fuse.pcMiklos Szeredi-0/+1
add AC_SYS_LARGEFILE to your configure.ac instead.
2011-05-19Don't hide output of /bin/mountMiklos Szeredi-10/+0
2011-03-30Check the return value after an open syscallLaszlo Papp-2/+4
2011-01-31fusermount: only allow mount and umount if util-linux suppports ↵Miklos Szeredi-71/+1
--no-canonicalize Remove "legacy" util-linux support as missing --no-canonicalize cannot be worked around in fuse.
2010-11-08update umount procedureMiklos Szeredi-0/+49
If umount(8) supports --fake and --no-canonicalize (util-linux-ng version 2.18 or later), and umount(2) supports the UMOUNT_NOFOLLOW flag (linux kernel version 2.6.35 or later) then, "fusermount -u" will call the umount(2) system call and use "umount --fake ..." to update /etc/mtab Added --disable-legacy-umount option to configure. This disables the runtime checking of umount(8) version. When built with this option then "fusermount -u" will fail if umount(8) doesn't support the --fake and --no-canonicalize options.
2010-11-08Open /dev/null for writeMiklos Szeredi-1/+1
Open /dev/null for write instead of read for redirecting stdout and stderr
2010-11-08Fix check for read-only fs in mtab updateMiklos Szeredi-1/+12
2010-08-27Add NetBSD supportMiklos Szeredi-0/+8
The bulk of it is just about adding ifdef __NetBSD__ where there is already an ifdef __FreeBSD__ Add a arch=netbsd to deal with NetBSD specifics. I suggests that arch=bsd could be renamed to arch=freebsd NetBSD specific linking with -lperfuse NetBSD patches to lib/mount.c. It turned to be less itrusive to patch mount;c than mount_bsd.c. I suggest mount_bsd.c could be renamed to mount_freebsd.c Patch from Emmanuel Dreyfus
2010-02-01* Released 2.8.3Miklos Szeredi-23/+2
* Using --no-canonicalize with umount(8) conflicts with the race fix, sinceit assumes the supplied path is absolute, while the race fix relies on the path being relative to the current directory
2010-01-26* Fix race if two "fusermount -u" instances are run in parallel.Miklos Szeredi-14/+17
Reported by Dan Rosenberg * Make sure that the path to be unmounted doesn't refer to a symlink
2009-12-23* Use '--no-canonicalize' option of mount(8) (available inMiklos Szeredi-14/+107
util-linux-ng version 2.17 or greater) to avoid calling readling(2) on the newly mounted filesystem before the mount procedure is finished. This has caused a deadlock if audit was enabled in the kernel. Also use '--no-canonicalize' for umount to avoid touching the mounted filesystem.
2008-07-10Skip calling mount(8) if /etc/mtab doesn't exist...Miklos Szeredi-2/+20
2008-06-10Fix missing <sys/param.h> include for PATH_MAXMiklos Szeredi-0/+1
2008-02-08Block SIGCHLD when executing mount and umountMiklos Szeredi-12/+36
2007-12-12change indentingMiklos Szeredi-197/+200
2007-11-12'fusermount -u' did not umount the filesystem if /etc/mtab was a symlinkMiklos Szeredi-2/+8
2007-10-16Clarify licence version to be "LGPLv2" for the libraryMiklos Szeredi-1/+1
2007-08-08fixesMiklos Szeredi-5/+10
2007-07-25Don't call /bin/[u]mount if /etc/mtab is a symlinkMiklos Szeredi-0/+17
2007-06-20Add fs subtype support to libfuse and fusermountMiklos Szeredi-0/+17
2007-05-03fixMiklos Szeredi-5/+0
2007-04-27libfuse: call umount(8) directly...Miklos Szeredi-0/+29
2007-04-25update copyright datesMiklos Szeredi-1/+1
2007-04-25*** empty log message ***Miklos Szeredi-0/+171