Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 117491 Details for
Bug 176365
sys-fs/fuse-2.6.4 - /sbin/mount.fuse wrapper is b0rked
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
/sbin/mount.fuse diff between 2.6.3 and 2.6.4
mount.fuse.diff (text/plain), 1.14 KB, created by
Jakub Moc
on 2007-04-28 15:27:06 UTC
(
hide
)
Description:
/sbin/mount.fuse diff between 2.6.3 and 2.6.4
Filename:
MIME Type:
Creator:
Jakub Moc
Created:
2007-04-28 15:27:06 UTC
Size:
1.14 KB
patch
obsolete
>--- /sbin/mount.fuse 2007-04-28 17:22:12.000000000 +0200 >+++ /tmp/mount.fuse 2007-04-28 10:38:03.000000000 +0200 >@@ -6,7 +6,7 @@ > # to kick me to the right way > # > >-VERSION="0.0.1" >+VERSION="0.0.2" > PRGNAME=`basename $0` > > if [ -z "$HOME" ]; then >@@ -20,8 +20,8 @@ > example: ${PRGNAME} sshfs#root@tux:/ /mnt/tuxssh -o rw > " > >-function die { >- echo -e "$PRGNAME# $1" >&2 >+die { >+ echo "$PRGNAME# $1" >&2 > [ -z "$2" ] && exit 128 > exit "$2" > } >@@ -45,8 +45,20 @@ > shift > shift > >-ignore_opts='\(user\|nouser\|users\|auto\|noauto\|_netdev\)' >- >-OPTIONS=`echo $@ | sed "s/,${ignore_opts}\|${ignore_opts},//g"` >- >-${FSTYPE} ${MOUNTPATH} ${MOUNTPOINT} ${OPTIONS} >+# loop over each mount option and skip all that should be ignored >+IFS="," >+for OPT in $@; do >+ OPT=`echo $OPT | sed "s/^\(-o\|user\|nouser\|users\|auto\|noauto\|_netdev\)$/IGNORE/"` >+ if [ "$OPT" == "IGNORE" ]; then continue; fi >+ OPTIONS="$OPTIONS$OPT," >+done >+IFS=" " >+ >+# add "-o " and remove trailing comma >+OPTIONS="-o `echo $OPTIONS | sed "s/,$//"`" >+ >+if test -z "$MOUNTPATH"; then >+ "${FSTYPE}" "${MOUNTPOINT}" ${OPTIONS} >+else >+ "${FSTYPE}" "${MOUNTPATH}" "${MOUNTPOINT}" ${OPTIONS} >+fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 176365
: 117491 |
117492
|
117493