Blob Blame History Raw
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}