Skip to content

Commit d09fe8d

Browse files
authored
Merge pull request #2778 from aiordache/openssl_mismatch_bug
Drop LD_LIBRARY_PATH env var for SSH shellout
2 parents 69087ab + 43ca2f8 commit d09fe8d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docker/transport/sshconn.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,15 @@ def f():
5353
signal.signal(signal.SIGINT, signal.SIG_IGN)
5454
preexec_func = f
5555

56+
env = dict(os.environ)
57+
58+
# drop LD_LIBRARY_PATH and SSL_CERT_FILE
59+
env.pop('LD_LIBRARY_PATH', None)
60+
env.pop('SSL_CERT_FILE', None)
61+
5662
self.proc = subprocess.Popen(
5763
' '.join(args),
58-
env=os.environ,
64+
env=env,
5965
shell=True,
6066
stdout=subprocess.PIPE,
6167
stdin=subprocess.PIPE,

0 commit comments

Comments
 (0)