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

libmisc: Accept --root=path and --prefix=path option syntax #219

Merged
merged 1 commit into from Feb 27, 2020

Conversation

infinnovation-dev
Copy link

Recognise --root=path in addition to --root path (and similarly for
--prefix) to match the syntax accepted by getopt_long.

Fixes #218

Recognise --root=path in addition to --root path (and similarly for
--prefix) to match the syntax accepted by getopt_long.

Fixes shadow-maint#218
@infinnovation-dev
Copy link
Author

Note that this does not attempt to fix parsing of short option syntax. Variants such as "-Rpath", "-eRpath" and "-eR path" will still be ignored. Instead of trying to fix that in process_root_flag(), it might be better to refactor process_flags() and check_flags() so that only getopt_long() is used for argument parsing. But that's for another day.

@hallyn hallyn merged commit 724442c into shadow-maint:master Feb 27, 2020
@hallyn
Copy link
Member

hallyn commented Feb 27, 2020

Thank you. Indeed refactoring might be good.

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.

chpasswd silently ignores --root=path
2 participants