Commit Graph

145 Commits

Author SHA1 Message Date
Miklos Szeredi
e63a9d8ee6 fusermount: clean up do_mount() function 2011-03-30 19:34:58 +02:00
Laszlo Papp
81fee822a0 Eliminate the unused value 2011-03-30 19:34:58 +02:00
Laszlo Papp
60eb44ee5e Fix resource leaks in fusermount 2011-03-30 19:34:58 +02:00
Laszlo Papp
a7a026043b Do not pass NULL to xstrdup 2011-03-30 19:34:58 +02:00
Laszlo Papp
61aff393dc Check the return value properly before passing it to any function 2011-03-30 19:34:58 +02:00
Miklos Szeredi
d6bec4020f In case of failure to add to /etc/mtab don't umount.
Reported by Marc Deslauriers
2011-03-11 13:51:49 +01:00
Miklos Szeredi
2250aae7bc Revert "Fix cleanup in case of failed mount"
This reverts commit bf5ffb5fd8.

Cleanup of mount doesn't work the way it was envisioned, because the
kernel doesn't follow mounts on the umount() call, hence it will find
a non-mounted directory.
2011-03-11 13:46:13 +01:00
Miklos Szeredi
cbd3a2a840 fusermount: only allow mount and umount if util-linux suppports --no-canonicalize
Remove "legacy" util-linux support as missing --no-canonicalize cannot
be worked around in fuse.
2011-01-31 16:33:22 +01:00
Miklos Szeredi
1e7607ff89 fusermount: chdir to / before performing mount/umount 2011-01-31 16:33:14 +01:00
Miklos Szeredi
bf5ffb5fd8 Fix cleanup in case of failed mount
In case of failure to add to /etc/mtab use same mountpoint for cleanup
as for mounting.  Reported by Marc Deslauriers
2011-01-31 16:32:46 +01:00
Miklos Szeredi
2fcbc2a5a9 fusermount: don't save/restore cwd
Remove unnecessary restoring of current working directory in
"fusermount -u"
2010-11-08 17:53:47 +01:00
Miklos Szeredi
eba226948b update umount procedure
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-08 16:00:16 +01:00
Miklos Szeredi
555d6b5043 Fix option escaping for fusermount.
If the "fsname=" option contained a comma then the option parser in
fusermount was confused (Novell bugzilla #641480).  Fix by escaping
commas when passing them over to fusermount.

Reported by Jan Engelhardt
2010-09-28 19:22:24 +02:00
Miklos Szeredi
5454e4fa74 Add .gitignore files
Add .gitignore files and delete .cvsignore files.
2010-06-24 13:40:31 +02:00
Miklos Szeredi
aebdeefa64 * Fix out-of-source build. 2010-06-15 17:49:13 +00:00
Miklos Szeredi
6433d1b8cb * Remove "chmod root" from install of fusermount 2010-06-01 09:45:52 +00:00
Miklos Szeredi
754c488d98 * Fix checking for symlinks in umount from /tmp. Reported by Al
Viro

* Fix umounting if /tmp is a symlink.  Reported by Franco Broi
2010-04-26 15:29:08 +00:00
Miklos Szeredi
bba1ff4cf6 * Fix stack alignment for clone() 2010-02-18 11:05:13 +00:00
Miklos Szeredi
8b3a0c74a1 * Fix race if two "fusermount -u" instances are run in parallel.
Reported by Dan Rosenberg

* Make sure that the path to be unmounted doesn't refer to a
symlink
2010-01-26 18:20:13 +00:00
Miklos Szeredi
2db5be456f * fusermount: Do not silently ignore command line arguments.
Patch by Sebastian Harl
2009-07-02 12:52:27 +00:00
Miklos Szeredi
5be4599b70 Fix 'make install-strip'. Reported by Dominick Layfield 2009-05-08 12:04:50 +00:00
Miklos Szeredi
cb71b4372c Fix handling of (no)suid and (no)dev options... 2008-07-10 19:30:43 +00:00
Miklos Szeredi
bd9bf9c8ce Update warning message for missing newline at end of fuse.conf 2008-04-09 13:23:36 +00:00
Miklos Szeredi
f2625f1106 Fix memory leaks on mount 2008-03-25 21:20:40 +00:00
Miklos Szeredi
0520bc0536 Fix './configure --disable-static' 2007-12-23 18:13:08 +00:00
Miklos Szeredi
cdb8b79bad change indenting 2007-12-12 14:25:40 +00:00
Miklos Szeredi
fdd1b9b4ec Add fs subtype support to mount.fuse 2007-06-21 13:48:07 +00:00
Miklos Szeredi
62c24a8e4b Add fs subtype support to libfuse and fusermount 2007-06-20 21:37:58 +00:00
Miklos Szeredi
aff03ba25e libulockmgr: Work around a kernel bug in recv() 2007-06-03 08:30:42 +00:00
Miklos Szeredi
f7a8e087dc Clean up init script, make it LSB compliant 2007-04-27 21:07:45 +00:00
Miklos Szeredi
d2e5f49ba4 merge bugfix branch up to 2.6.4 2007-04-27 19:24:35 +00:00
Miklos Szeredi
ccd1fa686c libfuse: call umount(8) directly... 2007-04-27 18:08:15 +00:00
Miklos Szeredi
611ad93ac7 update copyright dates 2007-04-25 16:19:15 +00:00
Miklos Szeredi
8e10b7420a *** empty log message *** 2007-04-25 15:52:39 +00:00
Miklos Szeredi
0ac820ee6a Replace utils/mount.fuse "sh" script with a "C" program 2007-04-18 16:04:27 +00:00
Miklos Szeredi
2a53c580b7 merge bugfixes up to merge3 2007-03-14 09:32:00 +00:00
Miklos Szeredi
6e7d018049 merge up to fuse_2_6_merge1 2007-01-19 22:11:40 +00:00
Miklos Szeredi
7dcdf1bf5b Fix option parsing in mount.fuse 2007-01-13 18:47:24 +00:00
Miklos Szeredi
a2ff24b600 mounting fixes 2006-12-10 00:13:53 +00:00
Miklos Szeredi
2ad6a4bc54 build fixes 2006-12-04 12:45:19 +00:00
Miklos Szeredi
04d1278867 Print a more helpful message in case the kernel doesn't support the 'fuseblk' filesystem type 2006-11-29 16:01:23 +00:00
Miklos Szeredi
10d03ed9c3 build/install fixes + add bug reporting instructions to README 2006-10-28 07:59:22 +00:00
Miklos Szeredi
87ad64c3dd fusermount: don't try to create a lock file if /etc/mtab is a symlink 2006-10-18 08:17:08 +00:00
Miklos Szeredi
7e7fa1fb94 fixes 2006-10-08 15:41:20 +00:00
Miklos Szeredi
4003dfa313 Add init script 2006-10-01 13:46:02 +00:00
Miklos Szeredi
004a8c763e fusermount: revert modprobe change 2006-09-30 16:41:12 +00:00
Miklos Szeredi
708b4818f2 bmap support 2006-09-30 16:02:25 +00:00
Miklos Szeredi
0c59ebfc9b ulockmgr 2006-09-10 20:53:36 +00:00
Miklos Szeredi
d85884141d fix 2006-09-07 06:08:56 +00:00
Miklos Szeredi
16dbf945f0 fix 2006-09-02 13:20:40 +00:00