diff options
| author | Tim Harder <radhermit@gentoo.org> | 2018-02-05 22:15:57 -0500 |
|---|---|---|
| committer | Tim Harder <radhermit@gentoo.org> | 2018-02-05 22:17:58 -0500 |
| commit | bb1f8408db50c4ea99c48cd41eafcc98c0460be0 (patch) | |
| tree | 0dd605eb4912a61b69cb8b5c76a642dc767712eb /net-proxy/sshuttle/files/sshuttle-0.78.3-remote-python.patch | |
| parent | 3838105b77316a45453dea09dda8cd8f4e9ba919 (diff) | |
| download | gentoo-bb1f8408db50c4ea99c48cd41eafcc98c0460be0.tar.gz gentoo-bb1f8408db50c4ea99c48cd41eafcc98c0460be0.tar.bz2 gentoo-bb1f8408db50c4ea99c48cd41eafcc98c0460be0.zip | |
net-proxy/sshuttle: check for more generic remote python versions
Diffstat (limited to 'net-proxy/sshuttle/files/sshuttle-0.78.3-remote-python.patch')
| -rw-r--r-- | net-proxy/sshuttle/files/sshuttle-0.78.3-remote-python.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net-proxy/sshuttle/files/sshuttle-0.78.3-remote-python.patch b/net-proxy/sshuttle/files/sshuttle-0.78.3-remote-python.patch new file mode 100644 index 000000000000..d7404fd45b00 --- /dev/null +++ b/net-proxy/sshuttle/files/sshuttle-0.78.3-remote-python.patch @@ -0,0 +1,13 @@ +Check for more generic remote python versions. + +--- sshuttle-0.78.3/sshuttle/ssh.py ++++ sshuttle-0.78.3/sshuttle/ssh.py +@@ -116,7 +116,7 @@ + if python: + pycmd = "'%s' -c '%s'" % (python, pyscript) + else: +- pycmd = ("P=python3.5; $P -V 2>/dev/null || P=python; " ++ pycmd = ("P=python3; $P -V 2>/dev/null || P=python2; $P -V 2>/dev/null || P=python; " + "exec \"$P\" -c %s") % quote(pyscript) + pycmd = ("exec /bin/sh -c %s" % quote(pycmd)) + argv = (sshl + |
