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-Tag: v1.0.0~259^2~64 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7aee8e5a0a2f69fc3e12362c75e18a2f59fb99d9;p=sliver-openvswitch.git Properly escape quotes in process_escape_args() library function --- diff --git a/lib/process.c b/lib/process.c index 39168862f..af867ef4e 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 == '\"') {