فهرست منبع

global_settings: copy env instead of global assignment

Frédéric Pierret (fepitre) 4 سال پیش
والد
کامیت
4c39d7bfc2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      qubesmanager/global_settings.py

+ 1 - 1
qubesmanager/global_settings.py

@@ -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