Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Only sudo -E when using --forward-agent #394

Merged
merged 2 commits into from
Aug 18, 2014

Conversation

xtoddx
Copy link
Contributor

@xtoddx xtoddx commented Aug 11, 2014

My take on fixing #358 by making -E context-dependent on if agent forwarding is enabled. This seems to match @matschaffer's earler comment about making -E automatic when using --forward-agent, and addresses @andoq's issue by not using -E always.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) when pulling 397a80f on xtoddx:sudo-command-selection into f87a236 on matschaffer:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) when pulling b26f1cf on xtoddx:sudo-command-selection into f87a236 on matschaffer:master.

@matschaffer
Copy link
Owner

@andoq does this support your use case? Seems like a reasonable approach to me.

@andoq
Copy link

andoq commented Aug 18, 2014

Yes, this looks good to me and would fix my scenario.

@matschaffer
Copy link
Owner

Sweet! Merging!

matschaffer added a commit that referenced this pull request Aug 18, 2014
Only sudo -E when using --forward-agent
@matschaffer matschaffer merged commit 865f09e into matschaffer:master Aug 18, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants