/sbin/mount.fuse uses bash specific syntax that breaks with dash

Bug #122282 reported by Alessandro Decina
4
Affects Status Importance Assigned to Milestone
fuse (Ubuntu)
Fix Released
Undecided
Colin Watson

Bug Description

dale@homeless:~/src$ grep lonely /etc/fstab
sshfs#dale@lonely:/home/dale/src /home/dale/src/lonely fuse defaults,noauto,uid=1000,gid=1000,reconnect,user 0 0
dale@homeless:~/src$

dale@homeless:~/src$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2006-09-07 20:17 /bin/sh -> dash
dale@homeless:~/src$

here's the output that I get trying to mount:
dale@homeless:~/src$ mount lonely/
[: 54: ==: unexpected operator
[: 54: ==: unexpected operator
[: 54: ==: unexpected operator
[: 54: ==: unexpected operator
[: 54: ==: unexpected operator
[: 54: ==: unexpected operator
[: 54: ==: unexpected operator
[: 54: ==: unexpected operator
[: 54: ==: unexpected operator
[: 54: ==: unexpected operator
fuse: unknown option `IGNORE'
dale@homeless:~/src$

the problem is in /sbin/mount.fuse line 52:
 if [ "$OPT" == "IGNORE" ]; then continue; fi

replacing == with = fixes the bug:
dale@homeless:~/src$ mount lonely/
dale@homeless:~/src$

Changed in fuse:
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

Fixed in fuse 2.7.0-1ubuntu1 (by upstream, although the Debian maintainer added a temporary fix in one of the intermediate versions): mount.fuse is no longer a shell script.

Changed in fuse:
assignee: nobody → kamion
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.