]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerSteve Sakoman <steve@sakoman.com>
Mon, 10 Feb 2025 16:06:16 +0000 (08:06 -0800)
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>
(cherry picked from commit ed9d887e8d71a800db19826264de552f7736dc6a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
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"):