run: Fix e.g. --filesystem=xdg-config/foo without :create

Fixes https://github.com/flatpak/flatpak/issues/463
This commit is contained in:
Alexander Larsson committed 2017-01-27 10:43:59 +01:00
1 parent 7d4ca72cba
commit 84aed615da
1 file changed
+1 -1
+1 -1
View File
@@ -2692,7 +2692,7 @@ flatpak_run_add_environment_args (GPtrArray *argv_array,
xdg_path = get_xdg_dir_from_string (filesystem, &rest, &where);
if (xdg_path != NULL && *rest != 0 &&
mode > FLATPAK_FILESYSTEM_MODE_READ_WRITE)
mode >= FLATPAK_FILESYSTEM_MODE_READ_WRITE)
{
g_autoptr(GFile) app_version = g_file_get_child (app_id_dir, where);
g_autoptr(GFile) app_version_subdir = g_file_resolve_relative_path (app_version, rest);