From 1fa5f0c9de4a0d3d93b40937c17b83348fabb988 Mon Sep 17 00:00:00 2001 From: Joniel Pasqualetto Date: Tue, 5 Sep 2023 08:18:47 -0400 Subject: [PATCH] Fixes #36689 - Ensure permissions on listing file is 644 --- lib/hammer_cli_katello/content_export_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/hammer_cli_katello/content_export_helper.rb b/lib/hammer_cli_katello/content_export_helper.rb index d9dfd5d2..843f8bab 100644 --- a/lib/hammer_cli_katello/content_export_helper.rb +++ b/lib/hammer_cli_katello/content_export_helper.rb @@ -100,6 +100,7 @@ def make_listing_files(export_history) paths.each do |dir| directories = Dir.chdir(dir) { Dir['*'] } File.write("#{dir}/listing", directories.join("\n")) + File.chmod(0o644, "#{dir}/listing") end rescue SystemCallError output.print_message _("Unable to access/write listing files"\