Merge remote-tracking branch 'qubesos/pr/39'
* qubesos/pr/39: Stop leaking terminal escapes via stderr
This commit is contained in:
commit
1813988074
@ -26,6 +26,7 @@ import os
|
|||||||
import shlex
|
import shlex
|
||||||
import socket
|
import socket
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
@ -505,7 +506,9 @@ class QubesLocal(QubesBase):
|
|||||||
pass
|
pass
|
||||||
qrexec_opts = ['-d', dest]
|
qrexec_opts = ['-d', dest]
|
||||||
if filter_esc:
|
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:
|
if localcmd:
|
||||||
qrexec_opts.extend(['-l', localcmd])
|
qrexec_opts.extend(['-l', localcmd])
|
||||||
if user is None:
|
if user is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user