Commit 8e00b1ad authored by Matthew Leeds's avatar Matthew Leeds
Browse files

build-system: Sanitize data used to determine build dir

If there are any slashes in any of the variables used to determine the
build dir, we need to replace them with hyphens so they don't
cause extra directories to be created.
parent fe781984
......@@ -305,7 +305,8 @@ ide_build_system_get_builddir (IdeBuildSystem *self,
device_id = ide_configuration_get_device_id (configuration);
runtime_id = ide_configuration_get_runtime_id (configuration);
name = g_strdup_printf ("%s-%s-%s", config_id, device_id, runtime_id);
name = g_strdelimit (g_strdup_printf ("%s-%s-%s", config_id, device_id, runtime_id),
G_DIR_SEPARATOR_S, '-');
ret = g_build_filename (g_get_user_cache_dir (),
"gnome-builder",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment