From f0e13a310669a5cd7fe215146300f5596ed3dee1 Mon Sep 17 00:00:00 2001 From: Andrey Prjibelski Date: Wed, 19 Jun 2024 17:01:41 +0300 Subject: [PATCH] fix: do not give exec permissions --- src/projects/spades/pipeline/spades_pipeline/support.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/projects/spades/pipeline/spades_pipeline/support.py b/src/projects/spades/pipeline/spades_pipeline/support.py index ea0ac0bbf..10396df5f 100644 --- a/src/projects/spades/pipeline/spades_pipeline/support.py +++ b/src/projects/spades/pipeline/spades_pipeline/support.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +а#!/usr/bin/env python3 ############################################################################ # Copyright (c) 2023-2024 SPAdes team @@ -927,16 +927,16 @@ def is_int(value): def add_user_write_permission_recursive(path): s = os.stat(path) - os.chmod(path, s.st_mode | stat.S_IRWXU) + os.chmod(path, s.st_mode | stat.S_IWUSR | stat.S_IRUSR) for root, dirs, files in os.walk(path): for d in dirs: d = os.path.join(root, d) s = os.stat(d) - os.chmod(d, s.st_mode | stat.S_IRWXU) + os.chmod(d, s.st_mode | stat.S_IWUSR | stat.S_IRUSR) for f in files: f = os.path.join(root, f) s = os.stat(d) - os.chmod(f, s.st_mode | stat.S_IRWXU) + os.chmod(f, s.st_mode | stat.S_IWUSR | stat.S_IRUSR) # shutil.copyfile does not copy any metadata (time and permission), so one