Skip to content

Fix empty PATH for subprocess calls#3

Open
Simske wants to merge 1 commit intoPhaeilo:masterfrom
Simske:path_fix
Open

Fix empty PATH for subprocess calls#3
Simske wants to merge 1 commit intoPhaeilo:masterfrom
Simske:path_fix

Conversation

@Simske
Copy link

@Simske Simske commented Feb 9, 2021

Fixes #2

It seems like OpenVPN fills the environment for the updown script only with specific variables, but leaves the PATH empty.
Maybe this is dependent on OpenVPN version or system configuration, but for me the ip and iptables executables were not found by the subprocess.

This fix justs sets the PATH manually for the subprocess calls.

It seems like openvpn fills the environment for the updown script only
with specific variables, but empties the path.
This sets the PATH for all subprocess calls.
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.

exec of "iptables" failed: No such file or directory

1 participant