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 authored and chris1984 committed Sep 5, 2023
1 parent ff7d5d7 commit 1fa5f0c
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(0o644, "#{dir}/listing")
end
rescue SystemCallError
output.print_message _("Unable to access/write listing files"\
Expand Down

0 comments on commit 1fa5f0c

Please sign in to comment.