Merge remote-tracking branch 'qubesos/pr/39'

* qubesos/pr/39:
  Stop leaking terminal escapes via stderr
This commit is contained in:
Marek Marczykowski-Górecki 2017-12-05 22:18:42 +01:00
commit 1813988074
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -26,6 +26,7 @@ import os
import shlex
import socket
import subprocess
import sys
import logging
@ -505,7 +506,9 @@ class QubesLocal(QubesBase):
pass
qrexec_opts = ['-d', dest]
if filter_esc:
qrexec_opts.extend(['-t', '-T'])
qrexec_opts.extend(['-t'])
if filter_esc or os.isatty(sys.stderr.fileno()):
qrexec_opts.extend(['-T'])
if localcmd:
qrexec_opts.extend(['-l', localcmd])
if user is None: