Correction to the code for outputing root commands, so that the backquote and

backslash character are not escaped when not using sudo
This commit is contained in:
Pierre Labastie 2012-03-22 20:40:04 +00:00
parent 970f2dc6e0
commit cd668b9315

View file

@ -533,7 +533,7 @@ popd</xsl:text>
select="substring-after($out-string,'make')"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="contains($out-string,'`')">
<xsl:when test="contains($out-string,'`') and $sudo = 'y'">
<xsl:call-template name="output-root">
<xsl:with-param name="out-string"
select="substring-before($out-string,'`')"/>
@ -544,7 +544,7 @@ popd</xsl:text>
select="substring-after($out-string,'`')"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="contains($out-string,'\')">
<xsl:when test="contains($out-string,'\') and $sudo = 'y'">
<xsl:call-template name="output-root">
<xsl:with-param name="out-string"
select="substring-before($out-string,'\')"/>