diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2023-03-17 01:58:24 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2023-03-17 13:27:21 +0000 |
commit | c9cbdf5179ee964bd2b26bc10527d160356f50b1 (patch) | |
tree | 81ecba4ee3e50ba3be46e6a6219f6a8678fe5037 | |
parent | e936e3100d406c50ba49f3ad6a0ecae455345ec0 (diff) | |
download | flatpak-c9cbdf5179ee964bd2b26bc10527d160356f50b1.tar.gz |
Set size of file info for symlinks to 0
`ostree_raw_file_to_content_stream` will try to read it, causing a
critical warning with GLib 2.76 causing tests to fail.
-rw-r--r-- | common/flatpak-utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/flatpak-utils.c b/common/flatpak-utils.c index f28fdc07..b8ad9700 100644 --- a/common/flatpak-utils.c +++ b/common/flatpak-utils.c @@ -5056,6 +5056,7 @@ flatpak_mtree_create_symlink (OstreeRepo *repo, g_file_info_set_name (file_info, filename); g_file_info_set_file_type (file_info, G_FILE_TYPE_SYMBOLIC_LINK); + g_file_info_set_size (file_info, 0); g_file_info_set_attribute_uint32 (file_info, "unix::uid", 0); g_file_info_set_attribute_uint32 (file_info, "unix::gid", 0); g_file_info_set_attribute_uint32 (file_info, "unix::mode", S_IFLNK | 0777); |