~lattis/muon#113: 
parentheses are not escaped for shell

Ninja will fail if the command for custom_target contains arguments with parentheses. Found such target in the older version of glib2.

Quick fix (dunno about Windows):

--- src/platform/posix/path.c.old       Sat Feb 10 18:35:59 2024
+++ src/platform/posix/path.c   Sat Feb 10 18:36:17 2024
@@ -31,7 +31,7 @@ path_to_posix(char *path)
 void
 shell_escape(struct workspace *wk, struct sbuf *sb, const char *str)
 {
-       const char *need_escaping = "\"'$ \\><&#\n";
+       const char *need_escaping = "\"'$ \\><&#()\n";
        const char *s;
        bool do_esc = false;
Status
RESOLVED FIXED
Submitter
~min
Assigned to
No-one
Submitted
9 months ago
Updated
2 months ago
Labels
No labels applied.

~lattis REPORTED FIXED 2 months ago

Register here or Log in to comment, or comment via email.