提交 141deb9f 编写于 作者: P Philipp Hahn 提交者: Eric Blake

schema: Restrict mode to octal

virStrToLong(..., 8, ...) already requires the mode to be octal.
Change the relax-ng schema to check for octal as well.
Signed-off-by: NPhilipp Hahn <hahn@univention.de>
上级 9194679e
......@@ -20,6 +20,12 @@
</data>
</define>
<define name='octalMode'>
<data type="unsignedInt">
<param name='pattern'>[0-7]+</param>
</data>
</define>
<define name="uint8range">
<choice>
<data type="string">
......
......@@ -175,7 +175,7 @@
<optional>
<element name='permissions'>
<element name='mode'>
<ref name='unsignedInt'/>
<ref name='octalMode'/>
</element>
<element name='owner'>
<choice>
......
......@@ -46,7 +46,7 @@
<optional>
<element name='permissions'>
<element name='mode'>
<ref name='unsignedInt'/>
<ref name='octalMode'/>
</element>
<element name='owner'>
<ref name='unsignedInt'/>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册