fuse/fuse-mount.fuse.patch
Thorsten Leemhuis 511cd65e2a revert back to fuse (the filesystem) 2.4.2-2 ; pfj overwrote is
accidentally (second part)
2006-01-15 10:16:27 +00:00

24 lines
626 B
Diff

diff -u util.org/mount.fuse util/mount.fuse
--- util.org/mount.fuse 2005-11-02 20:52:12.000000000 +0100
+++ util/mount.fuse 2005-11-02 20:59:51.000000000 +0100
@@ -5,6 +5,7 @@
# Thanks to Miklos Szeredi <miklos@szeredi.hu>
# to kick me to the right way
#
+export PATH
VERSION="0.0.1"
PRGNAME=`basename $0`
@@ -40,9 +41,9 @@
shift
shift
-OPTIONS="$@"
+# If there is a better regex that can remove all user from a sting like "-o user,rw,noexec,user,nosuid,nodev,user" tell me, thx
+OPTIONS="`echo $@ | sed 's|,user$|| ; s| user,| | ; s|,user,|,|'`"
-export PATH
${FSTYPE} ${MOUNTPATH} ${MOUNTPOINT} ${OPTIONS}