aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nichilson <dnicholson@linuxfromscratch.org>2007-08-08 18:10:57 +0000
committerDan Nichilson <dnicholson@linuxfromscratch.org>2007-08-08 18:10:57 +0000
commit31d3f3218663df11fbc3f51e558c75a87fe5a5dd (patch)
tree7d38b3683ec96466874ae27f42ae55b7a306639a
parent954ca05ade9b67703033c023e014cb4b9c976c6d (diff)
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
-rw-r--r--chapter01/changelog.xml6
-rw-r--r--chapter06/bash.xml5
2 files changed, 9 insertions, 2 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index c27fb2604..2b163af61 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -40,6 +40,12 @@
<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>
</listitem>
diff --git a/chapter06/bash.xml b/chapter06/bash.xml
index ba08418f3..56d077a22 100644
--- a/chapter06/bash.xml
+++ b/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>