mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-11 18:39:21 -04:00
export: Always make directories accessible
There is no reason ever to make a flatpak with a directory that is not accessible, so make them all readable and executable.
This commit is contained in:
@@ -172,7 +172,11 @@ commit_filter (OstreeRepo *repo,
|
||||
/* No setuid */
|
||||
mode = mode & ~07000;
|
||||
/* Canonical permission mode == same as what bare-user mode uses for checkouts */
|
||||
mode = mode | 0744;
|
||||
if (g_file_info_get_file_type (file_info) == G_FILE_TYPE_REGULAR)
|
||||
mode = mode | 0744;
|
||||
/* Always make directories readable and executable */
|
||||
if (g_file_info_get_file_type (file_info) == G_FILE_TYPE_DIRECTORY)
|
||||
mode = mode | 0555;
|
||||
g_file_info_set_attribute_uint32 (file_info, "unix::mode", mode);
|
||||
|
||||
if (matches_patterns (commit_data->exclude, path) &&
|
||||
|
||||
Reference in New Issue
Block a user