mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-16 10:50:43 +03:00
core: Ensure .archive-content files are mode 0644
We don't want to inherit the permissions of the actual file, otherwise trying to fetch e.g. /etc/passwd when being served via Apache httpd will break.
This commit is contained in:
parent
dee30bda7c
commit
802959f398
@ -684,7 +684,7 @@ ostree_create_file_from_input (GFile *dest_file,
|
||||
if (g_cancellable_set_error_if_cancelled (cancellable, error))
|
||||
return FALSE;
|
||||
|
||||
if (finfo != NULL)
|
||||
if (finfo != NULL && !is_archived_content)
|
||||
{
|
||||
mode = g_file_info_get_attribute_uint32 (finfo, "unix::mode");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user