From 7aee8e5a0a2f69fc3e12362c75e18a2f59fb99d9 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Mon, 1 Mar 2010 17:52:12 -0800 Subject: [PATCH] Properly escape quotes in process_escape_args() library function --- lib/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/process.c b/lib/process.c index 39168862..af867ef4 100644 --- a/lib/process.c +++ b/lib/process.c @@ -103,7 +103,7 @@ process_escape_args(char **argv) if (argp != argv) { ds_put_char(&ds, ' '); } - if (arg[strcspn(arg, " \t\r\n\v\\")]) { + if (arg[strcspn(arg, " \t\r\n\v\\\'\"")]) { ds_put_char(&ds, '"'); for (p = arg; *p; p++) { if (*p == '\\' || *p == '\"') { -- 2.30.2