]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: fix text regression
authorEric Blake <eblake@redhat.com>
Tue, 31 Jan 2012 23:51:36 +0000 (16:51 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 31 Jan 2012 23:53:46 +0000 (16:53 -0700)
Commit 8a09ee410 tickles a bug in libxml2-2.7.6 on RHEL 6.2,
where libxml2 treats the pattern [^\n] as excluding literal
backslash and n, instead of the intended newline, thus failing
to validate any domain name containing 'n'.

* docs/schemas/domaincommon.rng: Use literal newline instead.

docs/schemas/domaincommon.rng

index 66e5491fc86ecba7d78cf5bde81f888d502932a9..2423154b98fd12f2f7762c3da2883a917a233a1a 100644 (file)
   </define>
   <define name="domainName">
     <data type="string">
-      <param name="pattern">[^\n]+</param>
+      <!-- Use literal newline instead of \n for bug in libxml2 2.7.6 -->
+      <param name="pattern">[^
+]+</param>
     </data>
   </define>
   <define name="diskSerial">