From 9da9205376a70042af68341386e00de3fbf43828 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Sun, 22 Aug 2021 14:48:09 +0100 Subject: [PATCH] Cache maintenance - paths with spaces not handled In the cache maintenance function, put double quotes around the path variable. --- src/cache_maint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cache_maint.c b/src/cache_maint.c index 3e96bcb4..2b551a8c 100644 --- a/src/cache_maint.c +++ b/src/cache_maint.c @@ -1626,12 +1626,12 @@ static void cache_manager_cache_maintenance_start_cb(GenericDialog *fd, gpointer } else { - log_printf("The specified folder can not be found: %s\n", path); + log_printf("The specified folder can not be found: \"%s\"\n", path); } } else { - cmd_line = g_strdup_printf("%s --cache-maintenance %s", gq_executable_path, path); + cmd_line = g_strdup_printf("%s --cache-maintenance \"%s\"", gq_executable_path, path); g_spawn_command_line_async(cmd_line, NULL); -- 2.20.1