archrelease: copy trunk to extra-x86_64
[arch-packages.git] / flatpak / repos / extra-x86_64 / 0001-Set-size-of-file-info-for-symlinks-to-0.patch
blobf15cfd8def9e6156aac5fee0ae53b5da086cc355
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
3 Date: Fri, 17 Mar 2023 01:58:24 +0100
4 Subject: [PATCH] Set size of file info for symlinks to 0
6 `ostree_raw_file_to_content_stream` will try to read it, causing a
7 critical warning with GLib 2.76 causing tests to fail.
8 ---
9 common/flatpak-utils.c | 1 +
10 1 file changed, 1 insertion(+)
12 diff --git a/common/flatpak-utils.c b/common/flatpak-utils.c
13 index f28fdc071b1c..b8ad97003877 100644
14 --- a/common/flatpak-utils.c
15 +++ b/common/flatpak-utils.c
16 @@ -5056,6 +5056,7 @@ flatpak_mtree_create_symlink (OstreeRepo *repo,
18 g_file_info_set_name (file_info, filename);
19 g_file_info_set_file_type (file_info, G_FILE_TYPE_SYMBOLIC_LINK);
20 + g_file_info_set_size (file_info, 0);
21 g_file_info_set_attribute_uint32 (file_info, "unix::uid", 0);
22 g_file_info_set_attribute_uint32 (file_info, "unix::gid", 0);
23 g_file_info_set_attribute_uint32 (file_info, "unix::mode", S_IFLNK | 0777);