From 381f751f0aec2836d473a7c585d39381e3ed01dd Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Wed, 13 May 2020 12:22:45 -0500 Subject: [PATCH] remote-add: Don't make the repo existence optional A repository needs to exist for a remote to be written inside, otherwise the OstreeRepo instance will be NULL and a crash will occur once the instance is accessed. Fixes #3612. --- app/flatpak-builtins-remote-add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/flatpak-builtins-remote-add.c b/app/flatpak-builtins-remote-add.c index 89c2b6cd..750fb493 100644 --- a/app/flatpak-builtins-remote-add.c +++ b/app/flatpak-builtins-remote-add.c @@ -287,7 +287,7 @@ flatpak_builtin_remote_add (int argc, char **argv, g_option_context_add_main_entries (context, common_options, NULL); if (!flatpak_option_context_parse (context, add_options, &argc, &argv, - FLATPAK_BUILTIN_FLAG_ONE_DIR | FLATPAK_BUILTIN_FLAG_OPTIONAL_REPO, + FLATPAK_BUILTIN_FLAG_ONE_DIR, &dirs, cancellable, error)) return FALSE;