Package: fuse-utils
Version: 2.5.3-2
Severity: normal
Tags: patch

Hi!

mount.fuse seems to pass options like -v (verbose) to the mounting
program. There is nothing which mandates that programs should take
this option. In fact, I found that not many programs do use this
option (and libfuse doesn't parse -v by itself as well). As a
result, mounting fails with an unrecognized option thrown by the
mounting program. This bug surfaces when a fuse mount present in
fstab is mounted at boot time: mountall.sh under VERBOSE mode sends
a -v to mount, which in turn sends it to mount.fuse.

This patch screens -v from the args sent to the mounter. I don't
know if there are other such args which need to be screened.

--- mount.fuse.orig	2006-05-22 23:26:23.000000000 +0530
+++ mount.fuse	2006-05-22 23:59:11.000000000 +0530
@@ -42,7 +42,8 @@
 shift
 
 ignore_opts="(user|nouser|users|auto|noauto|_netdev)"
+ignore_args="(-v)"
 
-OPTIONS=`echo $@ | sed -r "s/(,${ignore_opts}|${ignore_opts},)//g"`
+OPTIONS=`echo $@ | sed -r -e "s/(,${ignore_opts}|${ignore_opts},)//g" -e "s/(^| )${ignore_args}(\$| )/ /g"`
 
 ${FSTYPE} ${MOUNTPATH} ${MOUNTPOINT} ${OPTIONS}
Regards,
Ramkumar.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (101, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-beyond2
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)

Versions of packages fuse-utils depends on:
ii  adduser                       3.87       Add and remove users and groups
ii  libc6                         2.3.6-7    GNU C Library: Shared libraries
ii  makedev                       2.3.1-81   creates device files in /dev
ii  sed                           4.1.5-1    The GNU sed stream editor
ii  ucf                           2.0010     Update Configuration File: preserv

Versions of packages fuse-utils recommends:
pn  fuse-source                   <none>     (no description available)

-- debconf information:
* fuse-utils/groupcreate: false
* fuse-utils/groupdelete: true
* fuse-utils/group: fuse
  fuse-utils/grouprenamemigrate: true

-- 
WARN_(accel)("msg null; should hang here to be win compatible\n");
                                   -- WINE source code

Reply via email to