Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix command line argument order #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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