mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-24 00:37:56 +00:00
unset LD_LIBRARY_PATH before invoking ssh, hopefully fixes #514
This commit is contained in:
parent
267347ad3f
commit
170f847e74
1 changed files with 5 additions and 1 deletions
|
@ -141,9 +141,13 @@ def __init__(self, location, create=False, lock_wait=None, lock=True, args=None)
|
|||
self.p = None
|
||||
testing = location.host == '__testsuite__'
|
||||
borg_cmd = self.borg_cmd(args, testing)
|
||||
env = dict(os.environ)
|
||||
if not testing:
|
||||
borg_cmd = self.ssh_cmd(location) + borg_cmd
|
||||
self.p = Popen(borg_cmd, bufsize=0, stdin=PIPE, stdout=PIPE, stderr=PIPE)
|
||||
# pyinstaller binary adds LD_LIBRARY_PATH=/tmp/_ME... but we do not want
|
||||
# that the system's ssh binary picks up (non-matching) libraries from there
|
||||
env.pop('LD_LIBRARY_PATH', None)
|
||||
self.p = Popen(borg_cmd, bufsize=0, stdin=PIPE, stdout=PIPE, stderr=PIPE, env=env)
|
||||
self.stdin_fd = self.p.stdin.fileno()
|
||||
self.stdout_fd = self.p.stdout.fileno()
|
||||
self.stderr_fd = self.p.stderr.fileno()
|
||||
|
|
Loading…
Reference in a new issue