diff options
Diffstat (limited to 'base/server/python')
| -rw-r--r-- | base/server/python/pki/server/deployment/pkihelper.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/base/server/python/pki/server/deployment/pkihelper.py b/base/server/python/pki/server/deployment/pkihelper.py index 30ba87a72..a84cd0e7b 100644 --- a/base/server/python/pki/server/deployment/pkihelper.py +++ b/base/server/python/pki/server/deployment/pkihelper.py @@ -170,7 +170,8 @@ class Identity: try: # Execute this "groupadd" command. with open(os.devnull, "w") as fnull: - subprocess.check_call(command, stdout=fnull, stderr=fnull) + subprocess.check_call(command, stdout=fnull, stderr=fnull, + close_fds=True) except subprocess.CalledProcessError as exc: config.pki_log.error(log.PKI_SUBPROCESS_ERROR_1, exc, extra=config.PKI_INDENTATION_LEVEL_2) @@ -234,7 +235,8 @@ class Identity: try: # Execute this "useradd" command. with open(os.devnull, "w") as fnull: - subprocess.check_call(command, stdout=fnull, stderr=fnull) + subprocess.check_call(command, stdout=fnull, stderr=fnull, + close_fds=True) except subprocess.CalledProcessError as exc: config.pki_log.error(log.PKI_SUBPROCESS_ERROR_1, exc, extra=config.PKI_INDENTATION_LEVEL_2) |
