File global-6.6.9-CVE-2024-38448.patch of Package global.18478

--- global/htags/htags.c	2020/03/02 00:53:49	1.235
+++ global/htags/htags.c	2024/05/09 07:21:32	1.236
@@ -46,6 +46,7 @@
 #include "global.h"
 #include "anchor.h"
 #include "cache.h"
+#include "char.h"
 #include "common.h"
 #include "htags.h"
 #include "incop.h"
@@ -1333,7 +1334,7 @@
 		*/
 		if (arg_dbpath[0]) {
 			strbuf_putc(sb, ' ');
-			strbuf_puts(sb, arg_dbpath);
+			strbuf_puts(sb, quote_shell(arg_dbpath));
 		}
 		if (system(strbuf_value(sb)))
 			die("cannot execute gtags(1) command.");
openSUSE Build Service is sponsored by