Ignore:
Timestamp:
02/19/2017 11:06:02 PM (7 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, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
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.