[master] 9bad265 Insert a space to break the \2 escape sequence
Poul-Henning Kamp
phk at FreeBSD.org
Tue Nov 25 14:50:43 CET 2014
commit 9bad265349757abdb0125a52fa8292a6afc4a13b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Nov 25 12:50:17 2014 +0000
Insert a space to break the \2 escape sequence
diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index 2d335fc..6f81206 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -578,7 +578,9 @@ class Arg(object):
if self.nam != None:
s += '"\n\t\t "\\1' + self.nam + '\\0'
if self.val != None:
- s += '"\n\t\t\t"\\2' + quote(self.val) + "\\0"
+ # The space before the value is important to
+ # terminate the \2 escape sequence
+ s += '"\n\t\t\t"\\2 ' + quote(self.val) + "\\0"
return s
#######################################################################
More information about the varnish-commit
mailing list