r3608 - jhalfs/branches/ablfs/BLFS/xsl

pierre at linuxfromscratch.org pierre at linuxfromscratch.org
Thu Mar 22 13:40:15 PDT 2012


Author: pierre
Date: 2012-03-22 14:40:04 -0600 (Thu, 22 Mar 2012)
New Revision: 3608

Modified:
   jhalfs/branches/ablfs/BLFS/xsl/scripts.xsl
Log:
Correction to the code for outputing root commands, so that the backquote and
backslash character are not escaped when not using sudo

Modified: jhalfs/branches/ablfs/BLFS/xsl/scripts.xsl
===================================================================
--- jhalfs/branches/ablfs/BLFS/xsl/scripts.xsl	2012-03-20 17:12:26 UTC (rev 3607)
+++ jhalfs/branches/ablfs/BLFS/xsl/scripts.xsl	2012-03-22 20:40:04 UTC (rev 3608)
@@ -533,7 +533,7 @@
                           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 @@
                           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,'\')"/>




More information about the alfs-log mailing list