Skip to content

Conversation

@kunkku
Copy link

@kunkku kunkku commented Sep 26, 2018

The mount spec and directory are passed as the first and second
arguments to the helper, followed by the options.

The current implementation works on glibc but fails on POSIX-conforming
C libraries such as musl.

@relan
Copy link
Owner

relan commented Sep 28, 2018

Thanks for the patch!

You mean the POSIXLY_CORRECT case, right?

A user can call mount.exfat-fuse directly and is in full right to put device and mountpoint after other options. Your change breaks this use-case. It also breaks mount.exfat-fuse -V.

I'd suggest to mutate argv[] instead (i.e. to do what glibc does) to cover all those cases.

The mount spec and directory are passed as the first and second
arguments to the helper, followed by the options.

The current implementation works on glibc but fails on POSIX-conforming
C libraries such as musl.
@kunkku
Copy link
Author

kunkku commented Sep 29, 2018

Arbitrary argument order supported now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants