Skip to contentSkip to conversation

resulttool/store: Fix permissions of logarchive

PATCH New Richard Purdie 1 participant 1 message Nov 26, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 resulttool/store: Fix permissions of logarchive

We want the results directory to be visable to other users, tweak the permissions of the created directory to ensure this is the case.

---
 scripts/lib/resulttool/store.py | 1 +
 1 file changed, 1 insertion(+)
scripts/lib/resulttool/store.py +1 -0
index 578910d234d..b143334e699 100644
@@ -87,6 +87,7 @@ def store(args, logger):
             if args.logfile_archive:
                 logdir = args.logfile_archive + "/" + tagname
                 shutil.copytree(tempdir, logdir)
+                os.chmod(logdir, 0o755)
                 for root, dirs,  files in os.walk(logdir):
                     for name in files:
                         if not name.endswith(".log"):