Changeset ef613133


Ignore:
Timestamp:
07/17/2021 05:04:22 PM (10 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, arm, ml-11.0, multilib, trunk, xry111/clfs-ng, xry111/glibc-2.34, xry111/lfs-next, xry111/tester-nohack
Children:
590d2559
Parents:
28bdcfe
Message:

do not use UID hack for tester

It's causing "root-tester namesis" (both have UID 0) if the tty is owned
by root. To fix bash test, use Expect to spawn a new PTY for it.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • appendices/dependencies.xml

    r28bdcfe ref613133  
    219219        <segtitle>&testsuites;</segtitle>
    220220        <seglistitem>
    221           <seg>Shadow</seg>
     221          <seg>Expect and Shadow</seg>
    222222        </seglistitem>
    223223      </segmentedlist>
  • chapter07/createfiles.xml

    r28bdcfe ref613133  
    176176  chapter.</para>
    177177
    178 <screen><userinput>echo "tester:x:$(ls -n $(tty) | cut -d" " -f3):101::/home/tester:/bin/bash" &gt;&gt; /etc/passwd
     178<screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" &gt;&gt; /etc/passwd
    179179echo "tester:x:101:" &gt;&gt; /etc/group
    180180install -o tester -d /home/tester</userinput></screen>
  • chapter08/bash.xml

    r28bdcfe ref613133  
    7777    class="username">tester</systemitem> user:</para>
    7878
    79 <screen><userinput remap="test">su tester &lt;&lt; EOF
    80 PATH=$PATH make tests &lt; $(tty)
     79<screen><userinput remap="test">su -s /usr/bin/expect tester &lt;&lt; EOF
     80spawn make tests; expect EOF;
    8181EOF</userinput></screen>
    8282
Note: See TracChangeset for help on using the changeset viewer.