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

contrib.sed(): avoid shell for uname #1571

Merged
merged 1 commit into from Mar 2, 2017

Conversation

ploxiln
Copy link

@ploxiln ploxiln commented Mar 1, 2017

Some (uncommon) systems can end up with shell escapes in the output
of run("uname"), so don't use shell (or pty), they're not needed anyway.

fixes #1526 / #1527

Figured this was another very easy little "fix". I'm happy to re-target to whatever branch is desired.

There is an integration test for contrib.sed() (already), which should be a reasonable sanity-test that I didn't break it...

Some (uncommon) systems can end up with shell escapes in the output
of run("uname"), so don't use shell (or pty), they're not needed anyway.
@ploxiln ploxiln changed the base branch from master to 1.13 March 1, 2017 19:29
@bitprophet
Copy link
Member

+1 on disabling shell/pty for this sort of background call. Thanks :)

@bitprophet bitprophet merged commit 3accd19 into fabric:1.13 Mar 2, 2017
bitprophet added a commit that referenced this pull request Mar 2, 2017
@ploxiln ploxiln deleted the sed_uname_noshell branch April 26, 2017 15:04
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.

None yet

2 participants