Ignore:
Timestamp:
02/19/2017 11:06:02 PM (5 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 8.0, 8.1, 8.1-rc1, 8.1-rc2, 8.2, 8.2-rc1, 8.3, 8.3-rc1, 8.3-rc2, 8.4, 8.4-rc1, 9.0, 9.0-rc1, 9.1, 9.1-rc1, cross-chap5, ml-11.0, multilib, old-trunk, trunk, xry111/git-transition, xry111/glibc-2.34, xry111/tester-nohack, xry111/usr-move
Children:
23b9ed7
Parents:
ce8ddac
Message:

Add a fix (embeeded patch) to shadow to fix an upstream bug.
Minor text change in adjusting toolchanin.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11189 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/shadow.xml

    rce8ddac r2a975935  
    6868    class="directory">/var/mail</filename> location used currently:</para>
    6969
    70 <screen><userinput remap="configure">sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \
     70<screen><userinput remap="pre">sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \
    7171       -e 's@/var/spool/mail@/var/mail@' etc/login.defs</userinput></screen>
     72
     73    <para>Now fix a bug that prevents <command>useradd</command> from
     74    setting the shell entry in the /etc/passwd file.  In this case we need a
     75    short patch, but can include it directly here without the need for a
     76    separate file:</para>
     77
     78<screen><userinput remap="pre">echo '--- src/useradd.c   (old)
     79+++ src/useradd.c   (new)
     80@@ -2027,6 +2027,8 @@
     81        is_shadow_grp = sgr_file_present ();
     82 #endif
     83 
     84+       get_defaults ();
     85+
     86        process_flags (argc, argv);
     87 
     88 #ifdef ENABLE_SUBIDS
     89@@ -2036,8 +2038,6 @@
     90            (!user_id || (user_id &lt;= uid_max &amp;&amp; user_id >= uid_min));
     91 #endif                         /* ENABLE_SUBIDS */
     92 
     93-       get_defaults ();
     94-
     95 #ifdef ACCT_TOOLS_SETUID
     96 #ifdef USE_PAM
     97        {' | patch -p0 -l</userinput></screen>
    7298
    7399    <note>
Note: See TracChangeset for help on using the changeset viewer.