From: Justin Pettit Date: Tue, 2 Mar 2010 01:52:12 +0000 (-0800) Subject: Properly escape quotes in process_escape_args() library function X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7aee8e5a0a2f69fc3e12362c75e18a2f59fb99d9;p=openvswitch Properly escape quotes in process_escape_args() library function --- 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 == '\"') {