-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: sudosu not working on some BSD machines #8214
base: main
Are you sure you want to change the base?
Conversation
BTW, if The original version passes |
Thanks for your contribution! Please note that you need to add a changelog fragment, and that the unit tests are failing (https://github.com/ansible-collections/community.general/blob/main/tests/unit/plugins/become/test_sudosu.py). Also it seems to me that this is potentially a larger change that might break some use-cases on other systems. I'm wondering whether the switch between the current and the new behavior should maybe be controlled by a toggle? (The |
ummmm the unit test is failing because it is asserting the original command which is not working on all system... Maybe we should change the unit test? |
That sounds good to me. |
SUMMARY
The original sudosu does not work on some BSD machines and some versions of linux machine as the argument of su differs .
ISSUE TYPE
COMPONENT NAME
become.sudosu
ADDITIONAL INFORMATION