projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c43f2a3
)
Properly escape quotes in process_escape_args() library function
author
Justin Pettit
<jpettit@nicira.com>
Tue, 2 Mar 2010 01:52:12 +0000
(17:52 -0800)
committer
Justin Pettit
<jpettit@nicira.com>
Tue, 2 Mar 2010 06:26:27 +0000
(22:26 -0800)
lib/process.c
patch
|
blob
|
history
diff --git
a/lib/process.c
b/lib/process.c
index 39168862ff55697e5b3ce5387e3804136275d509..af867ef4e01f5f349c650487089c5327aa3f4149 100644
(file)
--- 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 == '\"') {