]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
resulttool/store: Fix permissions of logarchive
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Nov 2024 11:11:12 +0000 (11:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Nov 2024 13:40:27 +0000 (13:40 +0000)
We want the results directory to be visable to other users, tweak the
permissions of the created directory to ensure this is the case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/resulttool/store.py

index 578910d234d52f9a439cd0f841302d2db88ad9a0..b143334e699dc7356c7fdaaa3be2bafef3da6303 100644 (file)
@@ -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"):