Browse Source

Fix bash stdin test to work when switching users

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8294 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Dan Nichilson 18 years ago
parent
commit
31d3f32186
2 changed files with 9 additions and 2 deletions
  1. 6 0
      chapter01/changelog.xml
  2. 3 2
      chapter06/bash.xml

+ 6 - 0
chapter01/changelog.xml

@@ -39,6 +39,12 @@
     <listitem>
       <para>2007-08-07</para>
       <itemizedlist>
+        <listitem>
+          <para>[dnicholson] - Redirected <filename
+          class="devicefile">/dev/tty</filename> to standard input when
+          running the Bash testsuite to prevent errors with terminal
+          permissions.</para>
+        </listitem>
         <listitem>
           <para>[dnicholson] - Added the <parameter>--disable-werror</parameter>
           parameter to Binutils Pass 1.</para>

+ 3 - 2
chapter06/bash.xml

@@ -81,9 +81,10 @@ sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \
 chown -Rv nobody ./</userinput></screen>
 
     <para>Now, run the tests as the <systemitem
-    class="username">nobody</systemitem> user:</para>
+    class="username">nobody</systemitem> user, ensuring that the standard
+    input device is readable:</para>
 
-<screen><userinput>su-tools nobody -s /bin/bash -c "make tests"</userinput></screen>
+<screen><userinput>su-tools nobody -s /bin/bash -c "make tests" &lt;/dev/tty</userinput></screen>
 
     <para>Install the package:</para>