From cbec6f25822c33615b8acb0fabc59e5969fdec91 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 24 Jun 2019 12:37:55 +0100 Subject: [PATCH] [Test] Fix permissions mask --- test/functional/lib/rspamd.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/functional/lib/rspamd.py b/test/functional/lib/rspamd.py index 9f7176ca9..928414868 100644 --- a/test/functional/lib/rspamd.py +++ b/test/functional/lib/rspamd.py @@ -10,6 +10,7 @@ import socket import sys import tempfile import json +import stat from robot.libraries.BuiltIn import BuiltIn from robot.api import logger @@ -108,7 +109,13 @@ def make_temporary_directory(): | ${TMPDIR} = | Make Temporary Directory | """ dirname = tempfile.mkdtemp() - os.chmod(dirname, 0755) + os.chmod(dirname, stat.S_IRUSR | + stat.S_IXUSR | + stat.S_IWUSR | + stat.S_IRGRP | + stat.S_IXGRP | + stat.S_IROTH | + stat.S_IXOTH) return dirname def make_temporary_file(): -- 2.39.5