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

[varnish] fix varnishadm subp call with sudo #1389

Merged
merged 1 commit into from
Feb 20, 2015
Merged

Conversation

LeoCavaille
Copy link
Member

When calling subprocess with an argv-like array, argv[0] needs to
be the program to execute and not a sequence of programs like
sudo someprogram.

Otherwise this results in:
OSError: [Errno 2] No such file or directory when trying to find
the sudo someprogram executable in the PATH.

When calling subprocess with an argv-like array, argv[0] needs to
be the program to execute and not a sequence of programs like
`sudo someprogram`.

Otherwise this results in:
`OSError: [Errno 2] No such file or directory` when trying to find
the `sudo someprogram` executable in the PATH.
@remh
Copy link
Contributor

remh commented Feb 20, 2015

looks good to me

LeoCavaille added a commit that referenced this pull request Feb 20, 2015
[varnish] fix `varnishadm` subp call with sudo
@LeoCavaille LeoCavaille merged commit 08e8986 into master Feb 20, 2015
@LeoCavaille LeoCavaille deleted the leo/varnishadm branch February 20, 2015 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants