mirror of
https://github.com/flatpak/flatpak.git
synced 2026-07-07 22:57:02 -04:00
Fix crash on uninitialized /var/lib/flatpak/repo as non-root
Closes: #1684 Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
421b1a953c
commit
18d146c765
@@ -6752,6 +6752,9 @@ flatpak_dir_check_add_remotes_config_dir (FlatpakDir *self,
|
||||
if (!flatpak_dir_maybe_ensure_repo (self, NULL, error))
|
||||
return FALSE;
|
||||
|
||||
if (self->repo == NULL)
|
||||
return TRUE;
|
||||
|
||||
config = ostree_repo_get_config (self->repo);
|
||||
|
||||
if (config == NULL)
|
||||
|
||||
Reference in New Issue
Block a user