From d486f37657a7640891d92103475c57ba6a3dff1a Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Tue, 18 Aug 2020 08:43:50 +0200 Subject: openpgp: Use explicit prefix for temporary directories MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- gemato/openpgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gemato/openpgp.py b/gemato/openpgp.py index 48b7396..c854d1a 100644 --- a/gemato/openpgp.py +++ b/gemato/openpgp.py @@ -187,7 +187,7 @@ class OpenPGPEnvironment(OpenPGPSystemEnvironment): def __init__(self, debug=False): super(OpenPGPEnvironment, self).__init__(debug=debug) - self._home = tempfile.mkdtemp() + self._home = tempfile.mkdtemp(prefix='gemato.') with open(os.path.join(self._home, 'dirmngr.conf'), 'w') as f: f.write('''# autogenerated by gemato -- cgit v1.2.3