Skip to content

Commit

Permalink
Fixes #36689 - Ensure permissions on listing file is 644
Browse files Browse the repository at this point in the history
  • Loading branch information
jpasqualetto committed Aug 21, 2023
1 parent 1f29a1a commit 928a726
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/hammer_cli_katello/content_export_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(0644, "#{dir}/listing")
end
rescue SystemCallError
output.print_message _("Unable to access/write listing files"\
Expand Down

0 comments on commit 928a726

Please sign in to comment.