Thorsten Leemhuis 511cd6
diff -u util.org/mount.fuse util/mount.fuse
Thorsten Leemhuis 511cd6
--- util.org/mount.fuse	2005-11-02 20:52:12.000000000 +0100
Thorsten Leemhuis 511cd6
+++ util/mount.fuse	2005-11-02 20:59:51.000000000 +0100
Thorsten Leemhuis 511cd6
@@ -5,6 +5,7 @@
Thorsten Leemhuis 511cd6
 # Thanks to Miklos Szeredi <miklos@szeredi.hu>
Thorsten Leemhuis 511cd6
 # to kick me to the right way
Thorsten Leemhuis 511cd6
 #
Thorsten Leemhuis 511cd6
+export PATH
Thorsten Leemhuis 511cd6
 
Thorsten Leemhuis 511cd6
 VERSION="0.0.1"
Thorsten Leemhuis 511cd6
 PRGNAME=`basename $0`
Thorsten Leemhuis 511cd6
@@ -40,9 +41,9 @@
Thorsten Leemhuis 511cd6
 shift
Thorsten Leemhuis 511cd6
 shift
Thorsten Leemhuis 511cd6
 
Thorsten Leemhuis 511cd6
-OPTIONS="$@"
Thorsten Leemhuis 511cd6
+# 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
Thorsten Leemhuis 511cd6
+OPTIONS="`echo $@ | sed 's|,user$|| ; s| user,| | ; s|,user,|,|'`"
Thorsten Leemhuis 511cd6
 
Thorsten Leemhuis 511cd6
-export PATH
Thorsten Leemhuis 511cd6
 ${FSTYPE} ${MOUNTPATH} ${MOUNTPOINT} ${OPTIONS}
Thorsten Leemhuis 511cd6
 
Thorsten Leemhuis 511cd6