Skip to content
New issue

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

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

Already on GitHub? # to your account

Replaces os.mknod with portable equivalent #55

Merged
merged 1 commit into from
Jun 21, 2018

Conversation

benthomasson
Copy link
Contributor

os.mknod is not available to users on Mac OS. os.mknod causes two tests
to fail: test_cmdline_playbook and test_cmdline_playbook_hosts.
Replacing os.mknod with os.open and setting permissions on create in one
step preserves security, makes the code portable, and makes the
test pass.

os.mknod is not available to users on Mac OS.  os.mknod causes two tests
to fail: test_cmdline_playbook and test_cmdline_playbook_hosts.
Replacing os.mknod with os.open and setting permissions on create in one
step preserves security, makes the code portable, and makes the
test pass.
@benthomasson benthomasson requested a review from matburt June 12, 2018 15:25
@cdvv7788
Copy link
Contributor

This seems to fix #72

Copy link
Member

@matburt matburt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@matburt matburt merged commit 201bb25 into ansible:master Jun 21, 2018
@benthomasson benthomasson deleted the os_mknod_fix branch June 21, 2018 14:36
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants