[Bug 11461] New: mount(1) passes arguments to mount helpers in wrong order

bugzilla at busybox.net bugzilla at busybox.net
Thu Nov 1 02:36:14 UTC 2018


https://bugs.busybox.net/show_bug.cgi?id=11461

            Bug ID: 11461
           Summary: mount(1) passes arguments to mount helpers in wrong
                    order
           Product: Busybox
           Version: 1.29.x
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Standard Compliance
          Assignee: unassigned at busybox.net
          Reporter: opal at wowana.me
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Originally reported from https://bugs.alpinelinux.org/issues/9609 – I took the
initiative here because I have also experienced this issue with my exfat
mounts.

In summary:

> root is not able to mount exFAT partitions with /bin/mount
> 
> This has to do with how busybox mount(1) orders arguments when sending to the mount helper.
> 
> Dummy helper script:
> % cat `which mount.test`
> #!/bin/sh
> echo "$@"
> 
> Example fstab entry:
> mount.test#/var/empty /tmp/foo fuse user 0 0
> 
> Example invocation:
> % mount /tmp/foo
> /var/empty /tmp/foo -o rw,noexec,nosuid,nodev
> 
> Notice how the options '-o ...' are appended to the command. mount.exfat(1) expects options and other flags to preceed the target directory:
> % sudo mount.exfat /dev/sdd /media/usb -o rw
> FUSE exfat 1.3.0
> Usage: mount.exfat [-d] [-o options] [-V] <device> <dir>

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list