Changeset 63c1d49 in clfs-sysroot for patches


Ignore:
Timestamp:
Jan 4, 2009, 2:59:00 PM (16 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
master
Children:
ac76cbb
Parents:
cfaf68c
Message:

Updated the shadow sysroot hacks patch so that shadows applications dont try to flush the nscd cache for their respective programs.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • patches/shadow-4.1.2.2-sysroot_hacks-2.patch

    rcfaf68c r63c1d49  
    22Date: 2006-11-24
    33Initial Package Version: 4.0.18.1
    4         Rediffed Against 4.1.2.2 by Joe Ciccone on 2009-01-03
     4        Rediffed Against 4.1.2.2 by Joe Ciccone on 2009-01-03
    55Origin: Joe Ciccone
    66Upstream Status: None
     
    88             parameter passed to configure. Allows the utilities to be run
    99             as a user other then root and properly modify the passwd and group
    10              files for the target system.
     10             files for the target system. This patch also disables the
     11             calls that flushes the nscd cache. There is no point in flushing
     12             the hosts cache db when it wasn't modified.
    1113
    1214diff -Naur shadow-4.1.2.2.orig/contrib/Makefile.in shadow-4.1.2.2/contrib/Makefile.in
    1315--- shadow-4.1.2.2.orig/contrib/Makefile.in     2008-11-22 19:10:51.000000000 -0500
    14 +++ shadow-4.1.2.2/contrib/Makefile.in  2009-01-03 16:35:58.976432977 -0500
     16+++ shadow-4.1.2.2/contrib/Makefile.in  2009-01-04 17:35:46.184121662 -0500
    1517@@ -184,6 +184,7 @@
    1618 srcdir = @srcdir@
     
    2325diff -Naur shadow-4.1.2.2.orig/doc/Makefile.in shadow-4.1.2.2/doc/Makefile.in
    2426--- shadow-4.1.2.2.orig/doc/Makefile.in 2008-11-22 19:10:51.000000000 -0500
    25 +++ shadow-4.1.2.2/doc/Makefile.in      2009-01-03 16:35:59.023099983 -0500
     27+++ shadow-4.1.2.2/doc/Makefile.in      2009-01-04 17:35:46.184121662 -0500
    2628@@ -184,6 +184,7 @@
    2729 srcdir = @srcdir@
     
    3436diff -Naur shadow-4.1.2.2.orig/etc/Makefile.in shadow-4.1.2.2/etc/Makefile.in
    3537--- shadow-4.1.2.2.orig/etc/Makefile.in 2008-11-22 19:10:51.000000000 -0500
    36 +++ shadow-4.1.2.2/etc/Makefile.in      2009-01-03 16:35:59.069766134 -0500
     38+++ shadow-4.1.2.2/etc/Makefile.in      2009-01-04 17:35:46.187460880 -0500
    3739@@ -209,6 +209,7 @@
    3840 srcdir = @srcdir@
     
    4547diff -Naur shadow-4.1.2.2.orig/etc/pam.d/Makefile.in shadow-4.1.2.2/etc/pam.d/Makefile.in
    4648--- shadow-4.1.2.2.orig/etc/pam.d/Makefile.in   2008-11-22 19:10:51.000000000 -0500
    47 +++ shadow-4.1.2.2/etc/pam.d/Makefile.in        2009-01-03 16:35:59.109766243 -0500
     49+++ shadow-4.1.2.2/etc/pam.d/Makefile.in        2009-01-04 17:35:46.187460880 -0500
    4850@@ -194,6 +194,7 @@
    4951 srcdir = @srcdir@
     
    5658diff -Naur shadow-4.1.2.2.orig/lib/commonio.c shadow-4.1.2.2/lib/commonio.c
    5759--- shadow-4.1.2.2.orig/lib/commonio.c  2008-11-22 18:11:15.000000000 -0500
    58 +++ shadow-4.1.2.2/lib/commonio.c       2009-01-03 16:24:11.160122816 -0500
     60+++ shadow-4.1.2.2/lib/commonio.c       2009-01-04 17:49:44.478189054 -0500
    5961@@ -183,14 +183,6 @@
    6062        if (!fp)
     
    7274        if (fchmod (fileno (fp), sb->st_mode & 0664))
    7375                goto fail;
    74 @@ -749,7 +741,7 @@
     76@@ -353,9 +345,10 @@
     77                if (lock_count == 0) {
     78                        /* Tell nscd when lock count goes to zero,
     79                           if any of the files were changed.  */
     80+
     81                        if (nscd_need_reload) {
     82-                               nscd_flush_cache ("passwd");
     83-                               nscd_flush_cache ("group");
     84+//                             nscd_flush_cache ("passwd");
     85+//                             nscd_flush_cache ("group");
     86                                nscd_need_reload = 0;
     87                        }
     88 #ifdef HAVE_LCKPWDF
     89@@ -749,7 +742,7 @@
    7590                 * Default permissions for new [g]shadow files.
    7691                 * (passwd and group always exist...)
     
    8398diff -Naur shadow-4.1.2.2.orig/lib/defines.h shadow-4.1.2.2/lib/defines.h
    8499--- shadow-4.1.2.2.orig/lib/defines.h   2008-11-22 18:11:15.000000000 -0500
    85 +++ shadow-4.1.2.2/lib/defines.h        2009-01-03 16:24:48.968136556 -0500
     100+++ shadow-4.1.2.2/lib/defines.h        2009-01-04 17:35:46.187460880 -0500
    86101@@ -265,20 +265,20 @@
    87102        (strncpy((A), (B), sizeof(A) - 1), (A)[sizeof(A) - 1] = '\0')
     
    111126diff -Naur shadow-4.1.2.2.orig/lib/getdef.c shadow-4.1.2.2/lib/getdef.c
    112127--- shadow-4.1.2.2.orig/lib/getdef.c    2008-11-22 18:11:15.000000000 -0500
    113 +++ shadow-4.1.2.2/lib/getdef.c 2009-01-03 16:25:10.736499890 -0500
     128+++ shadow-4.1.2.2/lib/getdef.c 2009-01-04 17:35:46.187460880 -0500
    114129@@ -127,7 +127,7 @@
    115130 };
     
    123138diff -Naur shadow-4.1.2.2.orig/lib/gshadow_.h shadow-4.1.2.2/lib/gshadow_.h
    124139--- shadow-4.1.2.2.orig/lib/gshadow_.h  2008-11-22 18:11:15.000000000 -0500
    125 +++ shadow-4.1.2.2/lib/gshadow_.h       2009-01-03 16:25:26.133167409 -0500
     140+++ shadow-4.1.2.2/lib/gshadow_.h       2009-01-04 17:35:46.187460880 -0500
    126141@@ -71,5 +71,5 @@
    127142 int putsgent ();
     
    133148diff -Naur shadow-4.1.2.2.orig/lib/Makefile.am shadow-4.1.2.2/lib/Makefile.am
    134149--- shadow-4.1.2.2.orig/lib/Makefile.am 2008-11-22 18:11:15.000000000 -0500
    135 +++ shadow-4.1.2.2/lib/Makefile.am      2009-01-03 16:21:23.733191690 -0500
     150+++ shadow-4.1.2.2/lib/Makefile.am      2009-01-04 17:35:46.187460880 -0500
    136151@@ -2,6 +2,7 @@
    137152 AUTOMAKE_OPTIONS = 1.0 foreign
     
    144159diff -Naur shadow-4.1.2.2.orig/lib/Makefile.in shadow-4.1.2.2/lib/Makefile.in
    145160--- shadow-4.1.2.2.orig/lib/Makefile.in 2008-11-22 19:10:52.000000000 -0500
    146 +++ shadow-4.1.2.2/lib/Makefile.in      2009-01-03 16:35:59.163099536 -0500
     161+++ shadow-4.1.2.2/lib/Makefile.in      2009-01-04 17:35:46.187460880 -0500
    147162@@ -206,9 +206,11 @@
    148163 srcdir = @srcdir@
     
    159174diff -Naur shadow-4.1.2.2.orig/lib/port.h shadow-4.1.2.2/lib/port.h
    160175--- shadow-4.1.2.2.orig/lib/port.h      2008-11-22 18:11:15.000000000 -0500
    161 +++ shadow-4.1.2.2/lib/port.h   2009-01-03 16:25:44.029827945 -0500
     176+++ shadow-4.1.2.2/lib/port.h   2009-01-04 17:35:46.187460880 -0500
    162177@@ -52,7 +52,7 @@
    163178  * PORT_DAY - Day of the week to a bit value (0 = Sunday).
     
    171186diff -Naur shadow-4.1.2.2.orig/libmisc/limits.c shadow-4.1.2.2/libmisc/limits.c
    172187--- shadow-4.1.2.2.orig/libmisc/limits.c        2008-11-22 18:11:08.000000000 -0500
    173 +++ shadow-4.1.2.2/libmisc/limits.c     2009-01-03 16:26:45.504180328 -0500
     188+++ shadow-4.1.2.2/libmisc/limits.c     2009-01-04 17:35:46.187460880 -0500
    174189@@ -54,7 +54,7 @@
    175190 #endif
     
    183198diff -Naur shadow-4.1.2.2.orig/libmisc/Makefile.am shadow-4.1.2.2/libmisc/Makefile.am
    184199--- shadow-4.1.2.2.orig/libmisc/Makefile.am     2008-11-22 18:11:08.000000000 -0500
    185 +++ shadow-4.1.2.2/libmisc/Makefile.am  2009-01-03 16:26:26.072172852 -0500
     200+++ shadow-4.1.2.2/libmisc/Makefile.am  2009-01-04 17:35:46.187460880 -0500
    186201@@ -1,6 +1,8 @@
    187202 
     
    195210diff -Naur shadow-4.1.2.2.orig/libmisc/Makefile.in shadow-4.1.2.2/libmisc/Makefile.in
    196211--- shadow-4.1.2.2.orig/libmisc/Makefile.in     2008-11-22 19:10:52.000000000 -0500
    197 +++ shadow-4.1.2.2/libmisc/Makefile.in  2009-01-03 16:35:59.229766152 -0500
     212+++ shadow-4.1.2.2/libmisc/Makefile.in  2009-01-04 17:35:46.187460880 -0500
    198213@@ -223,9 +223,11 @@
    199214 srcdir = @srcdir@
     
    210225diff -Naur shadow-4.1.2.2.orig/Makefile.in shadow-4.1.2.2/Makefile.in
    211226--- shadow-4.1.2.2.orig/Makefile.in     2008-11-22 19:10:53.000000000 -0500
    212 +++ shadow-4.1.2.2/Makefile.in  2009-01-03 16:36:00.209975513 -0500
     227+++ shadow-4.1.2.2/Makefile.in  2009-01-04 17:35:46.187460880 -0500
    213228@@ -209,6 +209,7 @@
    214229 srcdir = @srcdir@
     
    221236diff -Naur shadow-4.1.2.2.orig/man/cs/Makefile.in shadow-4.1.2.2/man/cs/Makefile.in
    222237--- shadow-4.1.2.2.orig/man/cs/Makefile.in      2008-11-22 19:10:52.000000000 -0500
    223 +++ shadow-4.1.2.2/man/cs/Makefile.in   2009-01-03 16:35:59.329766138 -0500
     238+++ shadow-4.1.2.2/man/cs/Makefile.in   2009-01-04 17:35:46.190976966 -0500
    224239@@ -188,6 +188,7 @@
    225240 srcdir = @srcdir@
     
    232247diff -Naur shadow-4.1.2.2.orig/man/de/Makefile.in shadow-4.1.2.2/man/de/Makefile.in
    233248--- shadow-4.1.2.2.orig/man/de/Makefile.in      2008-11-22 19:10:52.000000000 -0500
    234 +++ shadow-4.1.2.2/man/de/Makefile.in   2009-01-03 16:35:59.376642280 -0500
     249+++ shadow-4.1.2.2/man/de/Makefile.in   2009-01-04 17:35:46.190976966 -0500
    235250@@ -190,6 +190,7 @@
    236251 srcdir = @srcdir@
     
    243258diff -Naur shadow-4.1.2.2.orig/man/es/Makefile.in shadow-4.1.2.2/man/es/Makefile.in
    244259--- shadow-4.1.2.2.orig/man/es/Makefile.in      2008-11-22 19:10:52.000000000 -0500
    245 +++ shadow-4.1.2.2/man/es/Makefile.in   2009-01-03 16:35:59.416642409 -0500
     260+++ shadow-4.1.2.2/man/es/Makefile.in   2009-01-04 17:35:46.190976966 -0500
    246261@@ -188,6 +188,7 @@
    247262 srcdir = @srcdir@
     
    254269diff -Naur shadow-4.1.2.2.orig/man/fi/Makefile.in shadow-4.1.2.2/man/fi/Makefile.in
    255270--- shadow-4.1.2.2.orig/man/fi/Makefile.in      2008-11-22 19:10:52.000000000 -0500
    256 +++ shadow-4.1.2.2/man/fi/Makefile.in   2009-01-03 16:35:59.456642085 -0500
     271+++ shadow-4.1.2.2/man/fi/Makefile.in   2009-01-04 17:35:46.190976966 -0500
    257272@@ -185,6 +185,7 @@
    258273 srcdir = @srcdir@
     
    265280diff -Naur shadow-4.1.2.2.orig/man/fr/Makefile.in shadow-4.1.2.2/man/fr/Makefile.in
    266281--- shadow-4.1.2.2.orig/man/fr/Makefile.in      2008-11-22 19:10:52.000000000 -0500
    267 +++ shadow-4.1.2.2/man/fr/Makefile.in   2009-01-03 16:35:59.503309047 -0500
     282+++ shadow-4.1.2.2/man/fr/Makefile.in   2009-01-04 17:35:46.190976966 -0500
    268283@@ -192,6 +192,7 @@
    269284 srcdir = @srcdir@
     
    276291diff -Naur shadow-4.1.2.2.orig/man/hu/Makefile.in shadow-4.1.2.2/man/hu/Makefile.in
    277292--- shadow-4.1.2.2.orig/man/hu/Makefile.in      2008-11-22 19:10:52.000000000 -0500
    278 +++ shadow-4.1.2.2/man/hu/Makefile.in   2009-01-03 16:35:59.546642165 -0500
     293+++ shadow-4.1.2.2/man/hu/Makefile.in   2009-01-04 17:35:46.190976966 -0500
    279294@@ -188,6 +188,7 @@
    280295 srcdir = @srcdir@
     
    287302diff -Naur shadow-4.1.2.2.orig/man/id/Makefile.in shadow-4.1.2.2/man/id/Makefile.in
    288303--- shadow-4.1.2.2.orig/man/id/Makefile.in      2008-11-22 19:10:52.000000000 -0500
    289 +++ shadow-4.1.2.2/man/id/Makefile.in   2009-01-03 16:35:59.586642269 -0500
     304+++ shadow-4.1.2.2/man/id/Makefile.in   2009-01-04 17:35:46.190976966 -0500
    290305@@ -186,6 +186,7 @@
    291306 srcdir = @srcdir@
     
    298313diff -Naur shadow-4.1.2.2.orig/man/it/Makefile.in shadow-4.1.2.2/man/it/Makefile.in
    299314--- shadow-4.1.2.2.orig/man/it/Makefile.in      2008-11-22 19:10:52.000000000 -0500
    300 +++ shadow-4.1.2.2/man/it/Makefile.in   2009-01-03 16:35:59.636642408 -0500
     315+++ shadow-4.1.2.2/man/it/Makefile.in   2009-01-04 17:35:46.190976966 -0500
    301316@@ -192,6 +192,7 @@
    302317 srcdir = @srcdir@
     
    309324diff -Naur shadow-4.1.2.2.orig/man/ja/Makefile.in shadow-4.1.2.2/man/ja/Makefile.in
    310325--- shadow-4.1.2.2.orig/man/ja/Makefile.in      2008-11-22 19:10:52.000000000 -0500
    311 +++ shadow-4.1.2.2/man/ja/Makefile.in   2009-01-03 16:35:59.679975526 -0500
     326+++ shadow-4.1.2.2/man/ja/Makefile.in   2009-01-04 17:35:46.190976966 -0500
    312327@@ -189,6 +189,7 @@
    313328 srcdir = @srcdir@
     
    320335diff -Naur shadow-4.1.2.2.orig/man/ko/Makefile.in shadow-4.1.2.2/man/ko/Makefile.in
    321336--- shadow-4.1.2.2.orig/man/ko/Makefile.in      2008-11-22 19:10:52.000000000 -0500
    322 +++ shadow-4.1.2.2/man/ko/Makefile.in   2009-01-03 16:35:59.719975591 -0500
     337+++ shadow-4.1.2.2/man/ko/Makefile.in   2009-01-04 17:35:46.190976966 -0500
    323338@@ -188,6 +188,7 @@
    324339 srcdir = @srcdir@
     
    331346diff -Naur shadow-4.1.2.2.orig/man/Makefile.in shadow-4.1.2.2/man/Makefile.in
    332347--- shadow-4.1.2.2.orig/man/Makefile.in 2008-11-22 19:10:52.000000000 -0500
    333 +++ shadow-4.1.2.2/man/Makefile.in      2009-01-03 16:35:59.286433011 -0500
     348+++ shadow-4.1.2.2/man/Makefile.in      2009-01-04 17:35:46.190976966 -0500
    334349@@ -204,6 +204,7 @@
    335350 srcdir = @srcdir@
     
    342357diff -Naur shadow-4.1.2.2.orig/man/pl/Makefile.in shadow-4.1.2.2/man/pl/Makefile.in
    343358--- shadow-4.1.2.2.orig/man/pl/Makefile.in      2008-11-22 19:10:52.000000000 -0500
    344 +++ shadow-4.1.2.2/man/pl/Makefile.in   2009-01-03 16:35:59.766642065 -0500
     359+++ shadow-4.1.2.2/man/pl/Makefile.in   2009-01-04 17:35:46.190976966 -0500
    345360@@ -191,6 +191,7 @@
    346361 srcdir = @srcdir@
     
    353368diff -Naur shadow-4.1.2.2.orig/man/pt_BR/Makefile.in shadow-4.1.2.2/man/pt_BR/Makefile.in
    354369--- shadow-4.1.2.2.orig/man/pt_BR/Makefile.in   2008-11-22 19:10:52.000000000 -0500
    355 +++ shadow-4.1.2.2/man/pt_BR/Makefile.in        2009-01-03 16:35:59.809975610 -0500
     370+++ shadow-4.1.2.2/man/pt_BR/Makefile.in        2009-01-04 17:35:46.194310377 -0500
    356371@@ -188,6 +188,7 @@
    357372 srcdir = @srcdir@
     
    364379diff -Naur shadow-4.1.2.2.orig/man/ru/Makefile.in shadow-4.1.2.2/man/ru/Makefile.in
    365380--- shadow-4.1.2.2.orig/man/ru/Makefile.in      2008-11-22 19:10:52.000000000 -0500
    366 +++ shadow-4.1.2.2/man/ru/Makefile.in   2009-01-03 16:35:59.856642153 -0500
     381+++ shadow-4.1.2.2/man/ru/Makefile.in   2009-01-04 17:35:46.194310377 -0500
    367382@@ -192,6 +192,7 @@
    368383 srcdir = @srcdir@
     
    375390diff -Naur shadow-4.1.2.2.orig/man/sv/Makefile.in shadow-4.1.2.2/man/sv/Makefile.in
    376391--- shadow-4.1.2.2.orig/man/sv/Makefile.in      2008-11-22 19:10:52.000000000 -0500
    377 +++ shadow-4.1.2.2/man/sv/Makefile.in   2009-01-03 16:35:59.906642194 -0500
     392+++ shadow-4.1.2.2/man/sv/Makefile.in   2009-01-04 17:35:46.197643570 -0500
    378393@@ -192,6 +192,7 @@
    379394 srcdir = @srcdir@
     
    386401diff -Naur shadow-4.1.2.2.orig/man/tr/Makefile.in shadow-4.1.2.2/man/tr/Makefile.in
    387402--- shadow-4.1.2.2.orig/man/tr/Makefile.in      2008-11-22 19:10:53.000000000 -0500
    388 +++ shadow-4.1.2.2/man/tr/Makefile.in   2009-01-03 16:35:59.949975473 -0500
     403+++ shadow-4.1.2.2/man/tr/Makefile.in   2009-01-04 17:35:46.197643570 -0500
    389404@@ -188,6 +188,7 @@
    390405 srcdir = @srcdir@
     
    397412diff -Naur shadow-4.1.2.2.orig/man/zh_CN/Makefile.in shadow-4.1.2.2/man/zh_CN/Makefile.in
    398413--- shadow-4.1.2.2.orig/man/zh_CN/Makefile.in   2008-11-22 19:10:53.000000000 -0500
    399 +++ shadow-4.1.2.2/man/zh_CN/Makefile.in        2009-01-03 16:35:59.989975456 -0500
     414+++ shadow-4.1.2.2/man/zh_CN/Makefile.in        2009-01-04 17:35:46.197643570 -0500
    400415@@ -190,6 +190,7 @@
    401416 srcdir = @srcdir@
     
    408423diff -Naur shadow-4.1.2.2.orig/man/zh_TW/Makefile.in shadow-4.1.2.2/man/zh_TW/Makefile.in
    409424--- shadow-4.1.2.2.orig/man/zh_TW/Makefile.in   2008-11-22 19:10:53.000000000 -0500
    410 +++ shadow-4.1.2.2/man/zh_TW/Makefile.in        2009-01-03 16:36:00.033308778 -0500
     425+++ shadow-4.1.2.2/man/zh_TW/Makefile.in        2009-01-04 17:35:46.197643570 -0500
    411426@@ -190,6 +190,7 @@
    412427 srcdir = @srcdir@
     
    419434diff -Naur shadow-4.1.2.2.orig/src/chage.c shadow-4.1.2.2/src/chage.c
    420435--- shadow-4.1.2.2.orig/src/chage.c     2008-11-22 18:11:13.000000000 -0500
    421 +++ shadow-4.1.2.2/src/chage.c  2009-01-03 16:29:00.446477258 -0500
     436+++ shadow-4.1.2.2/src/chage.c  2009-01-04 17:35:46.197643570 -0500
    422437@@ -759,7 +759,7 @@
    423438 
     
    429444        if (amroot && (is_selinux_enabled () > 0)) {
    430445                amroot = (selinux_check_passwd_access (PASSWD__ROOTOK) == 0);
     446diff -Naur shadow-4.1.2.2.orig/src/chfn.c shadow-4.1.2.2/src/chfn.c
     447--- shadow-4.1.2.2.orig/src/chfn.c      2008-11-22 18:11:13.000000000 -0500
     448+++ shadow-4.1.2.2/src/chfn.c   2009-01-04 17:36:38.497642038 -0500
     449@@ -712,7 +712,7 @@
     450 
     451        SYSLOG ((LOG_INFO, "changed user `%s' information", user));
     452 
     453-       nscd_flush_cache ("passwd");
     454+//     nscd_flush_cache ("passwd");
     455 
     456 #ifdef USE_PAM
     457        pam_end (pamh, PAM_SUCCESS);
     458diff -Naur shadow-4.1.2.2.orig/src/chgpasswd.c shadow-4.1.2.2/src/chgpasswd.c
     459--- shadow-4.1.2.2.orig/src/chgpasswd.c 2008-11-22 18:11:13.000000000 -0500
     460+++ shadow-4.1.2.2/src/chgpasswd.c      2009-01-04 17:36:51.777440247 -0500
     461@@ -487,7 +487,7 @@
     462 
     463        close_files ();
     464 
     465-       nscd_flush_cache ("group");
     466+//     nscd_flush_cache ("group");
     467 
     468 #ifdef USE_PAM
     469        pam_end (pamh, PAM_SUCCESS);
     470diff -Naur shadow-4.1.2.2.orig/src/chpasswd.c shadow-4.1.2.2/src/chpasswd.c
     471--- shadow-4.1.2.2.orig/src/chpasswd.c  2008-11-22 18:11:13.000000000 -0500
     472+++ shadow-4.1.2.2/src/chpasswd.c       2009-01-04 17:37:03.177974182 -0500
     473@@ -472,7 +472,7 @@
     474 
     475        close_files ();
     476 
     477-       nscd_flush_cache ("passwd");
     478+//     nscd_flush_cache ("passwd");
     479 
     480 #ifdef USE_PAM
     481        pam_end (pamh, PAM_SUCCESS);
    431482diff -Naur shadow-4.1.2.2.orig/src/chsh.c shadow-4.1.2.2/src/chsh.c
    432483--- shadow-4.1.2.2.orig/src/chsh.c      2008-11-22 18:11:13.000000000 -0500
    433 +++ shadow-4.1.2.2/src/chsh.c   2009-01-03 16:29:34.126477989 -0500
     484+++ shadow-4.1.2.2/src/chsh.c   2009-01-04 17:37:20.960781498 -0500
    434485@@ -55,7 +55,7 @@
    435486 #include "pam_defs.h"
     
    450501        /*
    451502         * Get the program name. The program name is used as a prefix to
     503@@ -540,7 +540,7 @@
     504 
     505        SYSLOG ((LOG_INFO, "changed user `%s' shell to `%s'", user, loginsh));
     506 
     507-       nscd_flush_cache ("passwd");
     508+//     nscd_flush_cache ("passwd");
     509 
     510 #ifdef USE_PAM
     511        pam_end (pamh, PAM_SUCCESS);
    452512diff -Naur shadow-4.1.2.2.orig/src/gpasswd.c shadow-4.1.2.2/src/gpasswd.c
    453513--- shadow-4.1.2.2.orig/src/gpasswd.c   2008-11-22 18:11:13.000000000 -0500
    454 +++ shadow-4.1.2.2/src/gpasswd.c        2009-01-03 16:30:45.080269910 -0500
     514+++ shadow-4.1.2.2/src/gpasswd.c        2009-01-04 17:37:35.680767524 -0500
    455515@@ -81,7 +81,7 @@
    456516 /* The UID of the caller */
     
    478538 
    479539        open_files ();
     540@@ -988,7 +990,7 @@
     541 
     542        close_files ();
     543 
     544-       nscd_flush_cache ("group");
     545+//     nscd_flush_cache ("group");
     546 
     547        exit (E_SUCCESS);
     548 }
     549diff -Naur shadow-4.1.2.2.orig/src/groupadd.c shadow-4.1.2.2/src/groupadd.c
     550--- shadow-4.1.2.2.orig/src/groupadd.c  2008-11-22 18:11:13.000000000 -0500
     551+++ shadow-4.1.2.2/src/groupadd.c       2009-01-04 17:37:45.808677407 -0500
     552@@ -575,7 +575,7 @@
     553        grp_update ();
     554        close_files ();
     555 
     556-       nscd_flush_cache ("group");
     557+//     nscd_flush_cache ("group");
     558 
     559 #ifdef USE_PAM
     560        pam_end (pamh, PAM_SUCCESS);
     561diff -Naur shadow-4.1.2.2.orig/src/groupdel.c shadow-4.1.2.2/src/groupdel.c
     562--- shadow-4.1.2.2.orig/src/groupdel.c  2008-11-22 18:11:13.000000000 -0500
     563+++ shadow-4.1.2.2/src/groupdel.c       2009-01-04 17:37:59.640771523 -0500
     564@@ -366,7 +366,7 @@
     565 
     566        close_files ();
     567 
     568-       nscd_flush_cache ("group");
     569+//     nscd_flush_cache ("group");
     570 
     571 #ifdef USE_PAM
     572        if (retval == PAM_SUCCESS)
     573diff -Naur shadow-4.1.2.2.orig/src/groupmod.c shadow-4.1.2.2/src/groupmod.c
     574--- shadow-4.1.2.2.orig/src/groupmod.c  2008-11-22 18:11:13.000000000 -0500
     575+++ shadow-4.1.2.2/src/groupmod.c       2009-01-04 17:38:10.984091461 -0500
     576@@ -694,7 +694,7 @@
     577 
     578        close_files ();
     579 
     580-       nscd_flush_cache ("group");
     581+//     nscd_flush_cache ("group");
     582 
     583 #ifdef USE_PAM
     584        if (retval == PAM_SUCCESS)
     585diff -Naur shadow-4.1.2.2.orig/src/grpck.c shadow-4.1.2.2/src/grpck.c
     586--- shadow-4.1.2.2.orig/src/grpck.c     2008-11-22 18:11:13.000000000 -0500
     587+++ shadow-4.1.2.2/src/grpck.c  2009-01-04 17:38:25.327423087 -0500
     588@@ -777,7 +777,7 @@
     589        /* Commit the change in the database if needed */
     590        close_files (changed);
     591 
     592-       nscd_flush_cache ("group");
     593+//     nscd_flush_cache ("group");
     594 
     595        /*
     596         * Tell the user what we did and exit.
     597diff -Naur shadow-4.1.2.2.orig/src/grpconv.c shadow-4.1.2.2/src/grpconv.c
     598--- shadow-4.1.2.2.orig/src/grpconv.c   2008-11-22 18:11:13.000000000 -0500
     599+++ shadow-4.1.2.2/src/grpconv.c        2009-01-04 17:38:32.594090975 -0500
     600@@ -179,7 +179,7 @@
     601        sgr_unlock ();
     602        gr_unlock ();
     603 
     604-       nscd_flush_cache ("group");
     605+//     nscd_flush_cache ("group");
     606 
     607        return 0;
     608 }
     609diff -Naur shadow-4.1.2.2.orig/src/grpunconv.c shadow-4.1.2.2/src/grpunconv.c
     610--- shadow-4.1.2.2.orig/src/grpunconv.c 2008-11-22 18:11:13.000000000 -0500
     611+++ shadow-4.1.2.2/src/grpunconv.c      2009-01-04 17:38:45.274092355 -0500
     612@@ -142,7 +142,7 @@
     613        sgr_unlock ();
     614        gr_unlock ();
     615 
     616-       nscd_flush_cache ("group");
     617+//     nscd_flush_cache ("group");
     618 
     619        return 0;
     620 }
    480621diff -Naur shadow-4.1.2.2.orig/src/login_nopam.c shadow-4.1.2.2/src/login_nopam.c
    481622--- shadow-4.1.2.2.orig/src/login_nopam.c       2008-11-22 18:11:13.000000000 -0500
    482 +++ shadow-4.1.2.2/src/login_nopam.c    2009-01-03 16:31:03.632276734 -0500
     623+++ shadow-4.1.2.2/src/login_nopam.c    2009-01-04 17:35:46.197643570 -0500
    483624@@ -59,7 +59,7 @@
    484625 
     
    492633diff -Naur shadow-4.1.2.2.orig/src/logoutd.c shadow-4.1.2.2/src/logoutd.c
    493634--- shadow-4.1.2.2.orig/src/logoutd.c   2008-11-22 18:11:13.000000000 -0500
    494 +++ shadow-4.1.2.2/src/logoutd.c        2009-01-03 16:31:27.006497488 -0500
     635+++ shadow-4.1.2.2/src/logoutd.c        2009-01-04 17:35:46.197643570 -0500
    495636@@ -50,7 +50,7 @@
    496637 #endif
     
    504645diff -Naur shadow-4.1.2.2.orig/src/Makefile.am shadow-4.1.2.2/src/Makefile.am
    505646--- shadow-4.1.2.2.orig/src/Makefile.am 2008-11-22 18:11:13.000000000 -0500
    506 +++ shadow-4.1.2.2/src/Makefile.am      2009-01-03 16:28:27.703358175 -0500
     647+++ shadow-4.1.2.2/src/Makefile.am      2009-01-04 17:35:46.197643570 -0500
    507648@@ -3,7 +3,7 @@
    508649        .indent.pro
     
    541682diff -Naur shadow-4.1.2.2.orig/src/Makefile.in shadow-4.1.2.2/src/Makefile.in
    542683--- shadow-4.1.2.2.orig/src/Makefile.in 2008-11-22 19:10:53.000000000 -0500
    543 +++ shadow-4.1.2.2/src/Makefile.in      2009-01-03 16:36:00.163099745 -0500
     684+++ shadow-4.1.2.2/src/Makefile.in      2009-01-04 17:35:46.200767525 -0500
    544685@@ -371,13 +371,14 @@
    545686 srcdir = @srcdir@
     
    587728diff -Naur shadow-4.1.2.2.orig/src/newgrp.c shadow-4.1.2.2/src/newgrp.c
    588729--- shadow-4.1.2.2.orig/src/newgrp.c    2008-11-22 18:11:13.000000000 -0500
    589 +++ shadow-4.1.2.2/src/newgrp.c 2009-01-03 16:31:58.550641551 -0500
     730+++ shadow-4.1.2.2/src/newgrp.c 2009-01-04 17:35:46.200767525 -0500
    590731@@ -270,7 +270,7 @@
    591732                if (child < 0) {
     
    606747        argc--;
    607748        argv++;
     749diff -Naur shadow-4.1.2.2.orig/src/newusers.c shadow-4.1.2.2/src/newusers.c
     750--- shadow-4.1.2.2.orig/src/newusers.c  2008-11-22 18:11:13.000000000 -0500
     751+++ shadow-4.1.2.2/src/newusers.c       2009-01-04 17:39:02.984711408 -0500
     752@@ -865,8 +865,8 @@
     753 
     754        close_files ();
     755 
     756-       nscd_flush_cache ("passwd");
     757-       nscd_flush_cache ("group");
     758+//     nscd_flush_cache ("passwd");
     759+//     nscd_flush_cache ("group");
     760 
     761 #ifdef USE_PAM
     762        pam_end (pamh, PAM_SUCCESS);
    608763diff -Naur shadow-4.1.2.2.orig/src/passwd.c shadow-4.1.2.2/src/passwd.c
    609764--- shadow-4.1.2.2.orig/src/passwd.c    2008-11-22 18:11:13.000000000 -0500
    610 +++ shadow-4.1.2.2/src/passwd.c 2009-01-03 16:32:39.916453154 -0500
     765+++ shadow-4.1.2.2/src/passwd.c 2009-01-04 17:39:10.697416330 -0500
    611766@@ -717,7 +717,7 @@
    612767         * The program behaves differently when executed by root than when
     
    618773        /*
    619774         * Get the program name. The program name is used as a prefix to
    620 @@ -998,12 +998,14 @@
     775@@ -998,19 +998,21 @@
    621776                exit (E_SUCCESS);
    622777        }
     
    633788                update_shadow ();
    634789        else
     790                update_noshadow ();
     791 
     792-       nscd_flush_cache ("passwd");
     793-       nscd_flush_cache ("group");
     794+//     nscd_flush_cache ("passwd");
     795+//     nscd_flush_cache ("group");
     796 
     797        SYSLOG ((LOG_INFO, "password for `%s' changed by `%s'", name, myname));
     798        closelog ();
     799diff -Naur shadow-4.1.2.2.orig/src/pwck.c shadow-4.1.2.2/src/pwck.c
     800--- shadow-4.1.2.2.orig/src/pwck.c      2008-11-22 18:11:13.000000000 -0500
     801+++ shadow-4.1.2.2/src/pwck.c   2009-01-04 17:39:28.314083740 -0500
     802@@ -636,7 +636,7 @@
     803 
     804        close_files (changed);
     805 
     806-       nscd_flush_cache ("passwd");
     807+//     nscd_flush_cache ("passwd");
     808 
     809        /*
     810         * Tell the user what we did and exit.
     811diff -Naur shadow-4.1.2.2.orig/src/pwconv.c shadow-4.1.2.2/src/pwconv.c
     812--- shadow-4.1.2.2.orig/src/pwconv.c    2008-11-22 18:11:13.000000000 -0500
     813+++ shadow-4.1.2.2/src/pwconv.c 2009-01-04 17:39:39.097415639 -0500
     814@@ -208,7 +208,7 @@
     815        spw_unlock ();
     816        pw_unlock ();
     817 
     818-       nscd_flush_cache ("passwd");
     819+//     nscd_flush_cache ("passwd");
     820 
     821        exit (E_SUCCESS);
     822 }
     823diff -Naur shadow-4.1.2.2.orig/src/pwunconv.c shadow-4.1.2.2/src/pwunconv.c
     824--- shadow-4.1.2.2.orig/src/pwunconv.c  2008-11-22 18:11:13.000000000 -0500
     825+++ shadow-4.1.2.2/src/pwunconv.c       2009-01-04 17:39:49.297468490 -0500
     826@@ -149,7 +149,7 @@
     827        spw_unlock ();
     828        pw_unlock ();
     829 
     830-       nscd_flush_cache ("passwd");
     831+//     nscd_flush_cache ("passwd");
     832 
     833        return 0;
     834 }
    635835diff -Naur shadow-4.1.2.2.orig/src/suauth.c shadow-4.1.2.2/src/suauth.c
    636836--- shadow-4.1.2.2.orig/src/suauth.c    2008-11-22 18:11:13.000000000 -0500
    637 +++ shadow-4.1.2.2/src/suauth.c 2009-01-03 16:32:55.693118219 -0500
     837+++ shadow-4.1.2.2/src/suauth.c 2009-01-04 17:35:46.200767525 -0500
    638838@@ -40,7 +40,7 @@
    639839 #include "prototypes.h"
     
    647847diff -Naur shadow-4.1.2.2.orig/src/useradd.c shadow-4.1.2.2/src/useradd.c
    648848--- shadow-4.1.2.2.orig/src/useradd.c   2008-11-22 18:11:13.000000000 -0500
    649 +++ shadow-4.1.2.2/src/useradd.c        2009-01-03 16:33:52.903758217 -0500
     849+++ shadow-4.1.2.2/src/useradd.c        2009-01-04 17:40:06.618042276 -0500
    650850@@ -64,11 +64,11 @@
    651851 #include "shadowio.h"
     
    663863 /*
    664864  * Needed for MkLinux DR1/2/2.1 - J.
     865@@ -1751,8 +1751,8 @@
     866 
     867        close_files ();
     868 
     869-       nscd_flush_cache ("passwd");
     870-       nscd_flush_cache ("group");
     871+//     nscd_flush_cache ("passwd");
     872+//     nscd_flush_cache ("group");
     873 
     874 #ifdef USE_PAM
     875        if (retval == PAM_SUCCESS)
     876diff -Naur shadow-4.1.2.2.orig/src/userdel.c shadow-4.1.2.2/src/userdel.c
     877--- shadow-4.1.2.2.orig/src/userdel.c   2008-11-22 18:11:13.000000000 -0500
     878+++ shadow-4.1.2.2/src/userdel.c        2009-01-04 17:40:20.458047660 -0500
     879@@ -818,8 +818,8 @@
     880        user_cancel (user_name);
     881        close_files ();
     882 
     883-       nscd_flush_cache ("passwd");
     884-       nscd_flush_cache ("group");
     885+//     nscd_flush_cache ("passwd");
     886+//     nscd_flush_cache ("group");
     887 
     888 #ifdef USE_PAM
     889        if (retval == PAM_SUCCESS)
     890diff -Naur shadow-4.1.2.2.orig/src/usermod.c shadow-4.1.2.2/src/usermod.c
     891--- shadow-4.1.2.2.orig/src/usermod.c   2008-11-22 18:11:13.000000000 -0500
     892+++ shadow-4.1.2.2/src/usermod.c        2009-01-04 17:40:28.647917233 -0500
     893@@ -1531,8 +1531,8 @@
     894                grp_update ();
     895        close_files ();
     896 
     897-       nscd_flush_cache ("passwd");
     898-       nscd_flush_cache ("group");
     899+//     nscd_flush_cache ("passwd");
     900+//     nscd_flush_cache ("group");
     901 
     902        if (mflg)
     903                move_home ();
    665904diff -Naur shadow-4.1.2.2.orig/src/vipw.c shadow-4.1.2.2/src/vipw.c
    666905--- shadow-4.1.2.2.orig/src/vipw.c      2008-11-22 18:11:13.000000000 -0500
    667 +++ shadow-4.1.2.2/src/vipw.c   2009-01-03 16:35:01.086439030 -0500
     906+++ shadow-4.1.2.2/src/vipw.c   2009-01-04 17:40:43.305534712 -0500
    668907@@ -257,7 +257,7 @@
    669908        textdomain (PACKAGE);
     
    675914        {
    676915                /*
     916@@ -334,8 +334,8 @@
     917 #endif
     918        }
     919 
     920-       nscd_flush_cache ("passwd");
     921-       nscd_flush_cache ("group");
     922+//     nscd_flush_cache ("passwd");
     923+//     nscd_flush_cache ("group");
     924 
     925        exit (E_SUCCESS);
     926 }
Note: See TracChangeset for help on using the changeset viewer.