global_settings: copy env instead of global assignment

This commit is contained in:
Frédéric Pierret (fepitre) 2019-11-12 22:49:09 +01:00
parent 51acbde8d5
commit 4c39d7bfc2
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -37,7 +37,7 @@ qmemman_config_path = '/etc/qubes/qmemman.conf'
def _run_qrexec_repo(service, arg=''):
# Set default locale to C in order to prevent error msg
# in subprocess call related to falling back to C locale
env = os.environ
env = os.environ.copy()
env['LC_ALL'] = 'C'
# Fake up a "qrexec call" to dom0 because dom0 can't qrexec to itself yet
cmd = '/etc/qubes-rpc/' + service