From 4178fbdc096414623b4ce5671b81cfdf8362d54d Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 28 Aug 2017 11:39:17 +0200 Subject: [PATCH] update-repo: Ensure we commit the appstream data with canonical permissions --- common/flatpak-utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/flatpak-utils.c b/common/flatpak-utils.c index 1239af8d1..8f7bfceae 100644 --- a/common/flatpak-utils.c +++ b/common/flatpak-utils.c @@ -3933,7 +3933,8 @@ flatpak_repo_generate_appstream (OstreeRepo *repo, mtree = ostree_mutable_tree_new (); - modifier = ostree_repo_commit_modifier_new (OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS, + modifier = ostree_repo_commit_modifier_new (OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS | + OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS, (OstreeRepoCommitFilter) commit_filter, NULL, NULL); if (!ostree_repo_write_directory_to_mtree (repo, G_FILE (tmpdir_file), mtree, modifier, cancellable, error))