diff options
author | Alexander Larsson <alexl@redhat.com> | 2018-02-19 13:57:25 +0100 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2018-02-19 14:18:12 +0100 |
commit | b66243e26dcc8fc545683f3849cda04d7ba81d12 (patch) | |
tree | 2450d9a174da2310d9f8df15744160311a328f69 | |
parent | 8be4b550f37a360e437f72ee69fddcd8419e2eec (diff) | |
download | flatpak-b66243e26dcc8fc545683f3849cda04d7ba81d12.tar.gz |
Fix --file-forwarding
flatpak_context_append_bwrap_filesystem() didn't actually return the
exports so callers crashed dereferencing NULL.
This fixes https://github.com/flatpak/flatpak/issues/1428
-rw-r--r-- | common/flatpak-context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/flatpak-context.c b/common/flatpak-context.c index 25d1dbb9..13b5c898 100644 --- a/common/flatpak-context.c +++ b/common/flatpak-context.c @@ -2001,4 +2001,7 @@ flatpak_context_append_bwrap_filesystem (FlatpakContext *context, flatpak_bwrap_add_args_data (bwrap, "xdg-config-dirs", xdg_dirs_conf->str, xdg_dirs_conf->len, path, NULL); } + + if (exports_out) + *exports_out = g_steal_pointer (&exports); } |