Changeset cd668b9 for BLFS


Ignore:
Timestamp:
03/22/2012 08:40:04 PM (13 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs
Children:
de947d2
Parents:
970f2dc
Message:

Correction to the code for outputing root commands, so that the backquote and
backslash character are not escaped when not using sudo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/scripts.xsl

    r970f2dc rcd668b9  
    534534        </xsl:call-template>
    535535      </xsl:when>
    536       <xsl:when test="contains($out-string,'`')">
     536      <xsl:when test="contains($out-string,'`') and $sudo = 'y'">
    537537        <xsl:call-template name="output-root">
    538538          <xsl:with-param name="out-string"
     
    545545        </xsl:call-template>
    546546      </xsl:when>
    547       <xsl:when test="contains($out-string,'\')">
     547      <xsl:when test="contains($out-string,'\') and $sudo = 'y'">
    548548        <xsl:call-template name="output-root">
    549549          <xsl:with-param name="out-string"
Note: See TracChangeset for help on using the changeset viewer.