Ignore:
Timestamp:
02/19/2017 08:04:32 PM (7 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
b45757c
Parents:
44a4e0a
Message:

Fix shadow use of defaults. Experiment a new kind of "here patch"

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18361 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/security/shadow.xml

    r44a4e0a r13c8ca6  
    132132sed -i -e '/snprintf/s@_msg,@_msg, 256,@' src/su.c         &amp;&amp;
    133133sed -i -e '47 d' -e '60,65 d'             libmisc/myname.c &amp;&amp;
     134echo '--- src/useradd.c   (old)
     135+++ src/useradd.c   (new)
     136@@ -2027,6 +2027,8 @@
     137        is_shadow_grp = sgr_file_present ();
     138 #endif
     139 
     140+       get_defaults ();
     141+
     142        process_flags (argc, argv);
     143 
     144 #ifdef ENABLE_SUBIDS
     145@@ -2036,8 +2038,6 @@
     146            (!user_id || (user_id &lt;= uid_max &amp;&amp; user_id &gt;= uid_min));
     147 #endif                         /* ENABLE_SUBIDS */
     148 
     149-       get_defaults ();
     150-
     151 #ifdef ACCT_TOOLS_SETUID
     152 #ifdef USE_PAM
     153        {' | patch -p0 -l &amp;&amp;
    134154
    135155./configure --sysconfdir=/etc --with-group-name-max-length=32 &amp;&amp;
     
    190210      <command>sed -i '47 d' -e '60,65 d' libmisc/myname.c</command>: Apply
    191211      a security fix from upstream.
     212    </para>
     213
     214    <para>
     215      <command>echo '--- ...</command>: This command illustrates another
     216      way to apply patches. Without the patch, <command>useradd</command>
     217      does not use the defaults in <filename>/etc/default/useradd</filename>.
    192218    </para>
    193219
Note: See TracChangeset for help on using the changeset viewer.