From 31d3f3218663df11fbc3f51e558c75a87fe5a5dd Mon Sep 17 00:00:00 2001 From: Dan Nichilson Date: Wed, 8 Aug 2007 18:10:57 +0000 Subject: 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 --- chapter01/changelog.xml | 6 ++++++ chapter06/bash.xml | 5 +++-- 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 @@ -39,6 +39,12 @@ 2007-08-07 + + [dnicholson] - Redirected /dev/tty to standard input when + running the Bash testsuite to prevent errors with terminal + permissions. + [dnicholson] - Added the --disable-werror parameter to Binutils Pass 1. 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 ./ Now, run the tests as the nobody user: + class="username">nobody user, ensuring that the standard + input device is readable: -su-tools nobody -s /bin/bash -c "make tests" +su-tools nobody -s /bin/bash -c "make tests" </dev/tty Install the package: -- cgit v1.2.3-54-g00ecf