commit cbec6f2: [Test] Fix permissions mask

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jun 24 11:42:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-06-24 12:37:55 +0100
URL: https://github.com/rspamd/rspamd/commit/cbec6f25822c33615b8acb0fabc59e5969fdec91 (HEAD -> master)

[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():


More information about the Commits mailing list