source: clfs-sysroot/patches/shadow-4.1.4.1-sysroot_hacks-1.patch @ fc7c84a

Last change on this file since fc7c84a was fc7c84a, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Updated Shadow to 4.1.4.1.

  • Property mode set to 100644
File size: 68.5 KB
  • shadow-4.1.4.1

    Submitted By: Joe Ciccone <jciccone@gmail.com>
    Date: 2006-11-24
    Initial Package Version: 4.0.18.1
            Rediffed Against 4.1.2.2 by Joe Ciccone on 2009-01-03
            Rediffed Against 4.1.4.1 by Joe Ciccone on 2009-07-11
    Origin: Joe Ciccone
    Upstream Status: None
    Description: Changes the hardcoded /etc to the value of the --sysconfdir
                 parameter passed to configure. Allows the utilities to be run
                 as a user other then root and properly modify the passwd and group
                 files for the target system. This patch also disables the
                 calls that flushes the nscd cache. There is no point in flushing
                 the hosts cache db when it wasn't modified.
    
    diff -Naur shadow-4.1.4.1.orig/aclocal.m4 shadow-4.1.4.1/aclocal.m4
    old new  
    1 # generated automatically by aclocal 1.10.2 -*- Autoconf -*-
     1# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
    22
    33# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
    44# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
     
    1313
    1414m4_ifndef([AC_AUTOCONF_VERSION],
    1515  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
    16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
     16m4_if(AC_AUTOCONF_VERSION, [2.63],,
    1717[m4_warning([this file was generated for autoconf 2.63.
    1818You have another version of autoconf.  It may work, but is not guaranteed to.
    1919If you have problems, you may need to regenerate the build system entirely.
     
    41224122  dynamic_linker='GNU/Linux ld.so'
    41234123  ;;
    41244124
    4125 netbsdelf*-gnu)
    4126   version_type=linux
    4127   need_lib_prefix=no
    4128   need_version=no
    4129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    4130   soname_spec='${libname}${release}${shared_ext}$major'
    4131   shlibpath_var=LD_LIBRARY_PATH
    4132   shlibpath_overrides_runpath=no
    4133   hardcode_into_libs=yes
    4134   dynamic_linker='NetBSD ld.elf_so'
    4135   ;;
    4136 
    41374125netbsd*)
    41384126  version_type=sunos
    41394127  need_lib_prefix=no
     
    47254713  lt_cv_deplibs_check_method=pass_all
    47264714  ;;
    47274715
    4728 netbsd* | netbsdelf*-gnu)
     4716netbsd*)
    47294717  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    47304718    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
    47314719  else
     
    54065394            ;;
    54075395        esac
    54085396        ;;
    5409       netbsd* | netbsdelf*-gnu)
     5397      netbsd*)
    54105398        ;;
    54115399      *qnx* | *nto*)
    54125400        # QNX uses GNU C++, but need to define -shared option too, otherwise
     
    58315819  cygwin* | mingw* | cegcc*)
    58325820    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
    58335821  ;;
    5834   linux* | k*bsd*-gnu)
    5835     _LT_TAGVAR(link_all_deplibs, $1)=no
    5836   ;;
    58375822  *)
    58385823    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    58395824  ;;
     
    58985883  openbsd*)
    58995884    with_gnu_ld=no
    59005885    ;;
    5901   linux* | k*bsd*-gnu)
    5902     _LT_TAGVAR(link_all_deplibs, $1)=no
    5903     ;;
    59045886  esac
    59055887
    59065888  _LT_TAGVAR(ld_shlibs, $1)=yes
     
    60836065      fi
    60846066      ;;
    60856067
    6086     netbsd* | netbsdelf*-gnu)
     6068    netbsd*)
    60876069      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    60886070        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
    60896071        wlarc=
     
    62586240        if test "$aix_use_runtimelinking" = yes; then
    62596241          shared_flag="$shared_flag "'${wl}-G'
    62606242        fi
    6261         _LT_TAGVAR(link_all_deplibs, $1)=no
    62626243      else
    62636244        # not using gcc
    62646245        if test "$host_cpu" = ia64; then
     
    64976478      _LT_TAGVAR(link_all_deplibs, $1)=yes
    64986479      ;;
    64996480
    6500     netbsd* | netbsdelf*-gnu)
     6481    netbsd*)
    65016482      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    65026483        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
    65036484      else
     
    1018110162AC_SUBST($1)dnl
    1018210163])
    1018310164
    10184 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
     10165# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
    1018510166#
    1018610167# This file is free software; the Free Software Foundation
    1018710168# gives unlimited permission to copy and/or distribute it,
     
    1019610177[am__api_version='1.10'
    1019710178dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
    1019810179dnl require some minimum version.  Point them to the right macro.
    10199 m4_if([$1], [1.10.2], [],
     10180m4_if([$1], [1.10.1], [],
    1020010181      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
    1020110182])
    1020210183
     
    1021010191# AM_SET_CURRENT_AUTOMAKE_VERSION
    1021110192# -------------------------------
    1021210193# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
    10213 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
     10194# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
    1021410195AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    10215 [AM_AUTOMAKE_VERSION([1.10.2])dnl
     10196[AM_AUTOMAKE_VERSION([1.10.1])dnl
    1021610197m4_ifndef([AC_AUTOCONF_VERSION],
    1021710198  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
    10218 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
     10199_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
    1021910200
    1022010201# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
    1022110202
     
    1046510446
    1046610447# Generate code to set up dependency tracking.              -*- Autoconf -*-
    1046710448
    10468 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
     10449# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
    1046910450# Free Software Foundation, Inc.
    1047010451#
    1047110452# This file is free software; the Free Software Foundation
    1047210453# gives unlimited permission to copy and/or distribute it,
    1047310454# with or without modifications, as long as this notice is preserved.
    1047410455
    10475 #serial 4
     10456#serial 3
    1047610457
    1047710458# _AM_OUTPUT_DEPENDENCY_COMMANDS
    1047810459# ------------------------------
    1047910460AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
    10480 [# Autoconf 2.62 quotes --file arguments for eval, but not when files
    10481 # are listed without --file.  Let's play safe and only enable the eval
    10482 # if we detect the quoting.
    10483 case $CONFIG_FILES in
    10484 *\'*) eval set x "$CONFIG_FILES" ;;
    10485 *)   set x $CONFIG_FILES ;;
    10486 esac
    10487 shift
    10488 for mf
    10489 do
     10461[for mf in $CONFIG_FILES; do
    1049010462  # Strip MF so we end up with the name of the file.
    1049110463  mf=`echo "$mf" | sed -e 's/:.*$//'`
    1049210464  # Check whether this is an Automake generated Makefile or not.
     
    1084710819
    1084810820# Helper functions for option handling.                     -*- Autoconf -*-
    1084910821
    10850 # Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
     10822# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
    1085110823#
    1085210824# This file is free software; the Free Software Foundation
    1085310825# gives unlimited permission to copy and/or distribute it,
    1085410826# with or without modifications, as long as this notice is preserved.
    1085510827
    10856 # serial 4
     10828# serial 3
    1085710829
    1085810830# _AM_MANGLE_OPTION(NAME)
    1085910831# -----------------------
     
    1087010842# ----------------------------------
    1087110843# OPTIONS is a space-separated list of Automake options.
    1087210844AC_DEFUN([_AM_SET_OPTIONS],
    10873 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
     10845[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
    1087410846
    1087510847# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
    1087610848# -------------------------------------------
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/configure shadow-4.1.4.1/configure
    old new  
    67866786  lt_cv_deplibs_check_method=pass_all
    67876787  ;;
    67886788
    6789 netbsd* | netbsdelf*-gnu)
     6789netbsd*)
    67906790  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    67916791    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
    67926792  else
     
    94449444  openbsd*)
    94459445    with_gnu_ld=no
    94469446    ;;
    9447   linux* | k*bsd*-gnu)
    9448     link_all_deplibs=no
    9449     ;;
    94509447  esac
    94519448
    94529449  ld_shlibs=yes
     
    96299626      fi
    96309627      ;;
    96319628
    9632     netbsd* | netbsdelf*-gnu)
     9629    netbsd*)
    96339630      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    96349631        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
    96359632        wlarc=
     
    98049801        if test "$aix_use_runtimelinking" = yes; then
    98059802          shared_flag="$shared_flag "'${wl}-G'
    98069803        fi
    9807         link_all_deplibs=no
    98089804      else
    98099805        # not using gcc
    98109806        if test "$host_cpu" = ia64; then
     
    1021910215      link_all_deplibs=yes
    1022010216      ;;
    1022110217
    10222     netbsd* | netbsdelf*-gnu)
     10218    netbsd*)
    1022310219      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    1022410220        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
    1022510221      else
     
    1119611192  dynamic_linker='GNU/Linux ld.so'
    1119711193  ;;
    1119811194
    11199 netbsdelf*-gnu)
    11200   version_type=linux
    11201   need_lib_prefix=no
    11202   need_version=no
    11203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    11204   soname_spec='${libname}${release}${shared_ext}$major'
    11205   shlibpath_var=LD_LIBRARY_PATH
    11206   shlibpath_overrides_runpath=no
    11207   hardcode_into_libs=yes
    11208   dynamic_linker='NetBSD ld.elf_so'
    11209   ;;
    11210 
    1121111195netbsd*)
    1121211196  version_type=sunos
    1121311197  need_lib_prefix=no
     
    1214112125  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    1214212126  lt_status=$lt_dlunknown
    1214312127  cat > conftest.$ac_ext <<_LT_EOF
    12144 #line 12144 "configure"
     12128#line 12128 "configure"
    1214512129#include "confdefs.h"
    1214612130
    1214712131#if HAVE_DLFCN_H
     
    1223712221  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    1223812222  lt_status=$lt_dlunknown
    1223912223  cat > conftest.$ac_ext <<_LT_EOF
    12240 #line 12240 "configure"
     12224#line 12224 "configure"
    1224112225#include "confdefs.h"
    1224212226
    1224312227#if HAVE_DLFCN_H
     
    2489924883
    2490024884
    2490124885  case $ac_file$ac_mode in
    24902     "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
    24903 # are listed without --file.  Let's play safe and only enable the eval
    24904 # if we detect the quoting.
    24905 case $CONFIG_FILES in
    24906 *\'*) eval set x "$CONFIG_FILES" ;;
    24907 *)   set x $CONFIG_FILES ;;
    24908 esac
    24909 shift
    24910 for mf
    24911 do
     24886    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
    2491224887  # Strip MF so we end up with the name of the file.
    2491324888  mf=`echo "$mf" | sed -e 's/:.*$//'`
    2491424889  # Check whether this is an Automake generated Makefile or not.
  • contrib/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/contrib/Makefile.in shadow-4.1.4.1/contrib/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    200200        @for dep in $?; do \
    201201          case '$(am__configure_deps)' in \
    202202            *$$dep*) \
    203               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    204                 && { if test -f $@; then exit 0; else break; fi; }; \
     203              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     204                && exit 0; \
    205205              exit 1;; \
    206206          esac; \
    207207        done; \
  • doc/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/doc/Makefile.in shadow-4.1.4.1/doc/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    199199        @for dep in $?; do \
    200200          case '$(am__configure_deps)' in \
    201201            *$$dep*) \
    202               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    203                 && { if test -f $@; then exit 0; else break; fi; }; \
     202              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     203                && exit 0; \
    204204              exit 1;; \
    205205          esac; \
    206206        done; \
  • etc/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/etc/Makefile.in shadow-4.1.4.1/etc/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    238238        @for dep in $?; do \
    239239          case '$(am__configure_deps)' in \
    240240            *$$dep*) \
    241               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    242                 && { if test -f $@; then exit 0; else break; fi; }; \
     241              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     242                && exit 0; \
    243243              exit 1;; \
    244244          esac; \
    245245        done; \
     
    396396        unique=`for i in $$list; do \
    397397            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    398398          done | \
    399           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
     399          $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
    400400              END { if (nonempty) { for (i in files) print i; }; }'`; \
    401401        mkid -fID $$unique
    402402tags: TAGS
  • etc/pam.d/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/etc/pam.d/Makefile.in shadow-4.1.4.1/etc/pam.d/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    230230        @for dep in $?; do \
    231231          case '$(am__configure_deps)' in \
    232232            *$$dep*) \
    233               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    234                 && { if test -f $@; then exit 0; else break; fi; }; \
     233              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     234                && exit 0; \
    235235              exit 1;; \
    236236          esac; \
    237237        done; \
  • lib/commonio.c

    diff -Naur shadow-4.1.4.1.orig/lib/commonio.c shadow-4.1.4.1/lib/commonio.c
    old new  
    215215                return NULL;
    216216        }
    217217
    218 #ifdef HAVE_FCHOWN
    219         if (fchown (fileno (fp), sb->st_uid, sb->st_gid) != 0) {
    220                 goto fail;
    221         }
    222 #else
    223         if (chown (name, sb->st_mode) != 0) {
    224                 goto fail;
    225         }
    226 #endif
    227 
    228218#ifdef HAVE_FCHMOD
    229219        if (fchmod (fileno (fp), sb->st_mode & 0664) != 0) {
    230220                goto fail;
     
    408398                        /* Tell nscd when lock count goes to zero,
    409399                           if any of the files were changed.  */
    410400                        if (nscd_need_reload) {
    411                                 nscd_flush_cache ("passwd");
    412                                 nscd_flush_cache ("group");
     401//                              nscd_flush_cache ("passwd");
     402//                              nscd_flush_cache ("group");
    413403                                nscd_need_reload = false;
    414404                        }
    415405#ifdef HAVE_LCKPWDF
     
    872862                 * Default permissions for new [g]shadow files.
    873863                 * (passwd and group always exist...)
    874864                 */
    875                 sb.st_mode = 0400;
     865                sb.st_mode = 0600;
    876866                sb.st_uid = 0;
    877867                sb.st_gid = 0;
    878868        }
  • lib/defines.h

    diff -Naur shadow-4.1.4.1.orig/lib/defines.h shadow-4.1.4.1/lib/defines.h
    old new  
    299299        (strncpy((A), (B), sizeof(A) - 1), (A)[sizeof(A) - 1] = '\0')
    300300
    301301#ifndef PASSWD_FILE
    302 #define PASSWD_FILE "/etc/passwd"
     302#define PASSWD_FILE SYSCONFDIR"/passwd"
    303303#endif
    304304
    305305#ifndef GROUP_FILE
    306 #define GROUP_FILE "/etc/group"
     306#define GROUP_FILE SYSCONFDIR"/group"
    307307#endif
    308308
    309309#ifndef SHADOW_FILE
    310 #define SHADOW_FILE "/etc/shadow"
     310#define SHADOW_FILE SYSCONFDIR"/shadow"
    311311#endif
    312312
    313313#ifdef SHADOWGRP
    314314#ifndef SGROUP_FILE
    315 #define SGROUP_FILE "/etc/gshadow"
     315#define SGROUP_FILE SYSCONFDIR"/gshadow"
    316316#endif
    317317#endif
    318318
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/lib/getdef.c shadow-4.1.4.1/lib/getdef.c
    old new  
    128128};
    129129
    130130#ifndef LOGINDEFS
    131 #define LOGINDEFS "/etc/login.defs"
     131#define LOGINDEFS SYSCONFDIR"/login.defs"
    132132#endif
    133133
    134134static char def_fname[] = LOGINDEFS;    /* login config defs file       */
  • lib/gshadow_.h

    diff -Naur shadow-4.1.4.1.orig/lib/gshadow_.h shadow-4.1.4.1/lib/gshadow_.h
    old new  
    7171int putsgent ();
    7272#endif
    7373
    74 #define GSHADOW "/etc/gshadow"
     74#define GSHADOW SYSCONFDIR"/gshadow"
    7575#endif                          /* ifndef _H_GSHADOW */
  • lib/Makefile.am

    diff -Naur shadow-4.1.4.1.orig/lib/Makefile.am shadow-4.1.4.1/lib/Makefile.am
    old new  
    22AUTOMAKE_OPTIONS = 1.0 foreign
    33
    44DEFS =
     5AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
    56
    67noinst_LTLIBRARIES = libshadow.la
    78
  • lib/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/lib/Makefile.in shadow-4.1.4.1/lib/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    214214top_builddir = @top_builddir@
    215215top_srcdir = @top_srcdir@
    216216AUTOMAKE_OPTIONS = 1.0 foreign
     217AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
    217218noinst_LTLIBRARIES = libshadow.la
    218219libshadow_la_LDFLAGS = -version-info 0:0:0
    219220libshadow_la_SOURCES = \
     
    275276        @for dep in $?; do \
    276277          case '$(am__configure_deps)' in \
    277278            *$$dep*) \
    278               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    279                 && { if test -f $@; then exit 0; else break; fi; }; \
     279              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     280                && exit 0; \
    280281              exit 1;; \
    281282          esac; \
    282283        done; \
     
    377378        unique=`for i in $$list; do \
    378379            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    379380          done | \
    380           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
     381          $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
    381382              END { if (nonempty) { for (i in files) print i; }; }'`; \
    382383        mkid -fID $$unique
    383384tags: TAGS
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/lib/port.h shadow-4.1.4.1/lib/port.h
    old new  
    5252 * PORT_DAY - Day of the week to a bit value (0 = Sunday).
    5353 */
    5454
    55 #define PORTS   "/etc/porttime"
     55#define PORTS   SYSCONFDIR"/porttime"
    5656#define PORT_IDS        64
    5757#define PORT_TTY        64
    5858#define PORT_TIMES      24
  • libmisc/limits.c

    diff -Naur shadow-4.1.4.1.orig/libmisc/limits.c shadow-4.1.4.1/libmisc/limits.c
    old new  
    5454#endif
    5555#ifdef LIMITS
    5656#ifndef LIMITS_FILE
    57 #define LIMITS_FILE "/etc/limits"
     57#define LIMITS_FILE SYSCONFDIR"/limits"
    5858#endif
    5959#define LOGIN_ERROR_RLIMIT      1
    6060#define LOGIN_ERROR_LOGIN       2
  • libmisc/Makefile.am

    diff -Naur shadow-4.1.4.1.orig/libmisc/Makefile.am shadow-4.1.4.1/libmisc/Makefile.am
    old new  
    11
    22EXTRA_DIST = .indent.pro xgetXXbyYY.c
    33
     4AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
     5
    46INCLUDES = -I$(top_srcdir)/lib
    57
    68noinst_LIBRARIES = libmisc.a
  • libmisc/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/libmisc/Makefile.in shadow-4.1.4.1/libmisc/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    233233top_builddir = @top_builddir@
    234234top_srcdir = @top_srcdir@
    235235EXTRA_DIST = .indent.pro xgetXXbyYY.c
     236AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
    236237INCLUDES = -I$(top_srcdir)/lib
    237238noinst_LIBRARIES = libmisc.a
    238239libmisc_a_SOURCES = \
     
    305306        @for dep in $?; do \
    306307          case '$(am__configure_deps)' in \
    307308            *$$dep*) \
    308               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    309                 && { if test -f $@; then exit 0; else break; fi; }; \
     309              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     310                && exit 0; \
    310311              exit 1;; \
    311312          esac; \
    312313        done; \
     
    438439        unique=`for i in $$list; do \
    439440            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    440441          done | \
    441           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
     442          $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
    442443              END { if (nonempty) { for (i in files) print i; }; }'`; \
    443444        mkid -fID $$unique
    444445tags: TAGS
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/Makefile.in shadow-4.1.4.1/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    283283        -rm -rf .libs _libs
    284284
    285285distclean-libtool:
    286         -rm -f libtool config.lt
     286        -rm -f libtool
    287287
    288288# This directory's subdirectories are mostly independent; you can cd
    289289# into them and run `make' without going through this Makefile.
     
    360360        unique=`for i in $$list; do \
    361361            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    362362          done | \
    363           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
     363          $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
    364364              END { if (nonempty) { for (i in files) print i; }; }'`; \
    365365        mkid -fID $$unique
    366366tags: TAGS
  • man/cs/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/cs/Makefile.in shadow-4.1.4.1/man/cs/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    223223        @for dep in $?; do \
    224224          case '$(am__configure_deps)' in \
    225225            *$$dep*) \
    226               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    227                 && { if test -f $@; then exit 0; else break; fi; }; \
     226              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     227                && exit 0; \
    228228              exit 1;; \
    229229          esac; \
    230230        done; \
     
    265265          esac; \
    266266        done; \
    267267        for i in $$list; do \
    268           if test -f $$i; then file=$$i; \
    269           else file=$(srcdir)/$$i; fi; \
     268          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     269          else file=$$i; fi; \
    270270          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    271271          case "$$ext" in \
    272272            1*) ;; \
     
    310310          esac; \
    311311        done; \
    312312        for i in $$list; do \
    313           if test -f $$i; then file=$$i; \
    314           else file=$(srcdir)/$$i; fi; \
     313          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     314          else file=$$i; fi; \
    315315          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    316316          case "$$ext" in \
    317317            5*) ;; \
     
    355355          esac; \
    356356        done; \
    357357        for i in $$list; do \
    358           if test -f $$i; then file=$$i; \
    359           else file=$(srcdir)/$$i; fi; \
     358          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     359          else file=$$i; fi; \
    360360          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    361361          case "$$ext" in \
    362362            8*) ;; \
  • man/de/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/de/Makefile.in shadow-4.1.4.1/man/de/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    223223        @for dep in $?; do \
    224224          case '$(am__configure_deps)' in \
    225225            *$$dep*) \
    226               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    227                 && { if test -f $@; then exit 0; else break; fi; }; \
     226              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     227                && exit 0; \
    228228              exit 1;; \
    229229          esac; \
    230230        done; \
     
    265265          esac; \
    266266        done; \
    267267        for i in $$list; do \
    268           if test -f $$i; then file=$$i; \
    269           else file=$(srcdir)/$$i; fi; \
     268          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     269          else file=$$i; fi; \
    270270          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    271271          case "$$ext" in \
    272272            1*) ;; \
     
    310310          esac; \
    311311        done; \
    312312        for i in $$list; do \
    313           if test -f $$i; then file=$$i; \
    314           else file=$(srcdir)/$$i; fi; \
     313          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     314          else file=$$i; fi; \
    315315          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    316316          case "$$ext" in \
    317317            5*) ;; \
     
    355355          esac; \
    356356        done; \
    357357        for i in $$list; do \
    358           if test -f $$i; then file=$$i; \
    359           else file=$(srcdir)/$$i; fi; \
     358          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     359          else file=$$i; fi; \
    360360          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    361361          case "$$ext" in \
    362362            8*) ;; \
  • man/es/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/es/Makefile.in shadow-4.1.4.1/man/es/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    206206        @for dep in $?; do \
    207207          case '$(am__configure_deps)' in \
    208208            *$$dep*) \
    209               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    210                 && { if test -f $@; then exit 0; else break; fi; }; \
     209              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     210                && exit 0; \
    211211              exit 1;; \
    212212          esac; \
    213213        done; \
  • man/fi/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/fi/Makefile.in shadow-4.1.4.1/man/fi/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    204204        @for dep in $?; do \
    205205          case '$(am__configure_deps)' in \
    206206            *$$dep*) \
    207               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    208                 && { if test -f $@; then exit 0; else break; fi; }; \
     207              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     208                && exit 0; \
    209209              exit 1;; \
    210210          esac; \
    211211        done; \
     
    246246          esac; \
    247247        done; \
    248248        for i in $$list; do \
    249           if test -f $$i; then file=$$i; \
    250           else file=$(srcdir)/$$i; fi; \
     249          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     250          else file=$$i; fi; \
    251251          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    252252          case "$$ext" in \
    253253            1*) ;; \
  • man/fr/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/fr/Makefile.in shadow-4.1.4.1/man/fr/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    229229        @for dep in $?; do \
    230230          case '$(am__configure_deps)' in \
    231231            *$$dep*) \
    232               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    233                 && { if test -f $@; then exit 0; else break; fi; }; \
     232              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     233                && exit 0; \
    234234              exit 1;; \
    235235          esac; \
    236236        done; \
     
    271271          esac; \
    272272        done; \
    273273        for i in $$list; do \
    274           if test -f $$i; then file=$$i; \
    275           else file=$(srcdir)/$$i; fi; \
     274          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     275          else file=$$i; fi; \
    276276          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    277277          case "$$ext" in \
    278278            1*) ;; \
     
    316316          esac; \
    317317        done; \
    318318        for i in $$list; do \
    319           if test -f $$i; then file=$$i; \
    320           else file=$(srcdir)/$$i; fi; \
     319          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     320          else file=$$i; fi; \
    321321          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    322322          case "$$ext" in \
    323323            3*) ;; \
     
    361361          esac; \
    362362        done; \
    363363        for i in $$list; do \
    364           if test -f $$i; then file=$$i; \
    365           else file=$(srcdir)/$$i; fi; \
     364          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     365          else file=$$i; fi; \
    366366          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    367367          case "$$ext" in \
    368368            5*) ;; \
     
    406406          esac; \
    407407        done; \
    408408        for i in $$list; do \
    409           if test -f $$i; then file=$$i; \
    410           else file=$(srcdir)/$$i; fi; \
     409          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     410          else file=$$i; fi; \
    411411          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    412412          case "$$ext" in \
    413413            8*) ;; \
  • man/hu/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/hu/Makefile.in shadow-4.1.4.1/man/hu/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    213213        @for dep in $?; do \
    214214          case '$(am__configure_deps)' in \
    215215            *$$dep*) \
    216               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    217                 && { if test -f $@; then exit 0; else break; fi; }; \
     216              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     217                && exit 0; \
    218218              exit 1;; \
    219219          esac; \
    220220        done; \
     
    255255          esac; \
    256256        done; \
    257257        for i in $$list; do \
    258           if test -f $$i; then file=$$i; \
    259           else file=$(srcdir)/$$i; fi; \
     258          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     259          else file=$$i; fi; \
    260260          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    261261          case "$$ext" in \
    262262            1*) ;; \
     
    300300          esac; \
    301301        done; \
    302302        for i in $$list; do \
    303           if test -f $$i; then file=$$i; \
    304           else file=$(srcdir)/$$i; fi; \
     303          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     304          else file=$$i; fi; \
    305305          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    306306          case "$$ext" in \
    307307            5*) ;; \
     
    345345          esac; \
    346346        done; \
    347347        for i in $$list; do \
    348           if test -f $$i; then file=$$i; \
    349           else file=$(srcdir)/$$i; fi; \
     348          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     349          else file=$$i; fi; \
    350350          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    351351          case "$$ext" in \
    352352            8*) ;; \
  • man/id/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/id/Makefile.in shadow-4.1.4.1/man/id/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    204204        @for dep in $?; do \
    205205          case '$(am__configure_deps)' in \
    206206            *$$dep*) \
    207               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    208                 && { if test -f $@; then exit 0; else break; fi; }; \
     207              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     208                && exit 0; \
    209209              exit 1;; \
    210210          esac; \
    211211        done; \
     
    246246          esac; \
    247247        done; \
    248248        for i in $$list; do \
    249           if test -f $$i; then file=$$i; \
    250           else file=$(srcdir)/$$i; fi; \
     249          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     250          else file=$$i; fi; \
    251251          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    252252          case "$$ext" in \
    253253            1*) ;; \
     
    291291          esac; \
    292292        done; \
    293293        for i in $$list; do \
    294           if test -f $$i; then file=$$i; \
    295           else file=$(srcdir)/$$i; fi; \
     294          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     295          else file=$$i; fi; \
    296296          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    297297          case "$$ext" in \
    298298            8*) ;; \
  • man/it/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/it/Makefile.in shadow-4.1.4.1/man/it/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    227227        @for dep in $?; do \
    228228          case '$(am__configure_deps)' in \
    229229            *$$dep*) \
    230               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    231                 && { if test -f $@; then exit 0; else break; fi; }; \
     230              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     231                && exit 0; \
    232232              exit 1;; \
    233233          esac; \
    234234        done; \
     
    269269          esac; \
    270270        done; \
    271271        for i in $$list; do \
    272           if test -f $$i; then file=$$i; \
    273           else file=$(srcdir)/$$i; fi; \
     272          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     273          else file=$$i; fi; \
    274274          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    275275          case "$$ext" in \
    276276            1*) ;; \
     
    314314          esac; \
    315315        done; \
    316316        for i in $$list; do \
    317           if test -f $$i; then file=$$i; \
    318           else file=$(srcdir)/$$i; fi; \
     317          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     318          else file=$$i; fi; \
    319319          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    320320          case "$$ext" in \
    321321            3*) ;; \
     
    359359          esac; \
    360360        done; \
    361361        for i in $$list; do \
    362           if test -f $$i; then file=$$i; \
    363           else file=$(srcdir)/$$i; fi; \
     362          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     363          else file=$$i; fi; \
    364364          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    365365          case "$$ext" in \
    366366            5*) ;; \
     
    404404          esac; \
    405405        done; \
    406406        for i in $$list; do \
    407           if test -f $$i; then file=$$i; \
    408           else file=$(srcdir)/$$i; fi; \
     407          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     408          else file=$$i; fi; \
    409409          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    410410          case "$$ext" in \
    411411            8*) ;; \
  • man/ja/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/ja/Makefile.in shadow-4.1.4.1/man/ja/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    219219        @for dep in $?; do \
    220220          case '$(am__configure_deps)' in \
    221221            *$$dep*) \
    222               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    223                 && { if test -f $@; then exit 0; else break; fi; }; \
     222              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     223                && exit 0; \
    224224              exit 1;; \
    225225          esac; \
    226226        done; \
     
    261261          esac; \
    262262        done; \
    263263        for i in $$list; do \
    264           if test -f $$i; then file=$$i; \
    265           else file=$(srcdir)/$$i; fi; \
     264          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     265          else file=$$i; fi; \
    266266          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    267267          case "$$ext" in \
    268268            1*) ;; \
     
    306306          esac; \
    307307        done; \
    308308        for i in $$list; do \
    309           if test -f $$i; then file=$$i; \
    310           else file=$(srcdir)/$$i; fi; \
     309          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     310          else file=$$i; fi; \
    311311          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    312312          case "$$ext" in \
    313313            5*) ;; \
     
    351351          esac; \
    352352        done; \
    353353        for i in $$list; do \
    354           if test -f $$i; then file=$$i; \
    355           else file=$(srcdir)/$$i; fi; \
     354          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     355          else file=$$i; fi; \
    356356          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    357357          case "$$ext" in \
    358358            8*) ;; \
  • man/ko/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/ko/Makefile.in shadow-4.1.4.1/man/ko/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    213213        @for dep in $?; do \
    214214          case '$(am__configure_deps)' in \
    215215            *$$dep*) \
    216               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    217                 && { if test -f $@; then exit 0; else break; fi; }; \
     216              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     217                && exit 0; \
    218218              exit 1;; \
    219219          esac; \
    220220        done; \
     
    255255          esac; \
    256256        done; \
    257257        for i in $$list; do \
    258           if test -f $$i; then file=$$i; \
    259           else file=$(srcdir)/$$i; fi; \
     258          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     259          else file=$$i; fi; \
    260260          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    261261          case "$$ext" in \
    262262            1*) ;; \
     
    300300          esac; \
    301301        done; \
    302302        for i in $$list; do \
    303           if test -f $$i; then file=$$i; \
    304           else file=$(srcdir)/$$i; fi; \
     303          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     304          else file=$$i; fi; \
    305305          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    306306          case "$$ext" in \
    307307            5*) ;; \
     
    345345          esac; \
    346346        done; \
    347347        for i in $$list; do \
    348           if test -f $$i; then file=$$i; \
    349           else file=$(srcdir)/$$i; fi; \
     348          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     349          else file=$$i; fi; \
    350350          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    351351          case "$$ext" in \
    352352            8*) ;; \
  • man/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/Makefile.in shadow-4.1.4.1/man/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    353353        @for dep in $?; do \
    354354          case '$(am__configure_deps)' in \
    355355            *$$dep*) \
    356               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    357                 && { if test -f $@; then exit 0; else break; fi; }; \
     356              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     357                && exit 0; \
    358358              exit 1;; \
    359359          esac; \
    360360        done; \
     
    397397          esac; \
    398398        done; \
    399399        for i in $$list; do \
    400           if test -f $$i; then file=$$i; \
    401           else file=$(srcdir)/$$i; fi; \
     400          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     401          else file=$$i; fi; \
    402402          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    403403          case "$$ext" in \
    404404            1*) ;; \
     
    442442          esac; \
    443443        done; \
    444444        for i in $$list; do \
    445           if test -f $$i; then file=$$i; \
    446           else file=$(srcdir)/$$i; fi; \
     445          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     446          else file=$$i; fi; \
    447447          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    448448          case "$$ext" in \
    449449            3*) ;; \
     
    487487          esac; \
    488488        done; \
    489489        for i in $$list; do \
    490           if test -f $$i; then file=$$i; \
    491           else file=$(srcdir)/$$i; fi; \
     490          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     491          else file=$$i; fi; \
    492492          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    493493          case "$$ext" in \
    494494            5*) ;; \
     
    532532          esac; \
    533533        done; \
    534534        for i in $$list; do \
    535           if test -f $$i; then file=$$i; \
    536           else file=$(srcdir)/$$i; fi; \
     535          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     536          else file=$$i; fi; \
    537537          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    538538          case "$$ext" in \
    539539            8*) ;; \
     
    642642        unique=`for i in $$list; do \
    643643            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    644644          done | \
    645           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
     645          $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
    646646              END { if (nonempty) { for (i in files) print i; }; }'`; \
    647647        mkid -fID $$unique
    648648tags: TAGS
  • man/pl/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/pl/Makefile.in shadow-4.1.4.1/man/pl/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    230230        @for dep in $?; do \
    231231          case '$(am__configure_deps)' in \
    232232            *$$dep*) \
    233               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    234                 && { if test -f $@; then exit 0; else break; fi; }; \
     233              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     234                && exit 0; \
    235235              exit 1;; \
    236236          esac; \
    237237        done; \
     
    272272          esac; \
    273273        done; \
    274274        for i in $$list; do \
    275           if test -f $$i; then file=$$i; \
    276           else file=$(srcdir)/$$i; fi; \
     275          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     276          else file=$$i; fi; \
    277277          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    278278          case "$$ext" in \
    279279            1*) ;; \
     
    317317          esac; \
    318318        done; \
    319319        for i in $$list; do \
    320           if test -f $$i; then file=$$i; \
    321           else file=$(srcdir)/$$i; fi; \
     320          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     321          else file=$$i; fi; \
    322322          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    323323          case "$$ext" in \
    324324            5*) ;; \
     
    362362          esac; \
    363363        done; \
    364364        for i in $$list; do \
    365           if test -f $$i; then file=$$i; \
    366           else file=$(srcdir)/$$i; fi; \
     365          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     366          else file=$$i; fi; \
    367367          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    368368          case "$$ext" in \
    369369            8*) ;; \
  • man/pt_BR/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/pt_BR/Makefile.in shadow-4.1.4.1/man/pt_BR/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    209209        @for dep in $?; do \
    210210          case '$(am__configure_deps)' in \
    211211            *$$dep*) \
    212               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    213                 && { if test -f $@; then exit 0; else break; fi; }; \
     212              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     213                && exit 0; \
    214214              exit 1;; \
    215215          esac; \
    216216        done; \
     
    251251          esac; \
    252252        done; \
    253253        for i in $$list; do \
    254           if test -f $$i; then file=$$i; \
    255           else file=$(srcdir)/$$i; fi; \
     254          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     255          else file=$$i; fi; \
    256256          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    257257          case "$$ext" in \
    258258            1*) ;; \
     
    296296          esac; \
    297297        done; \
    298298        for i in $$list; do \
    299           if test -f $$i; then file=$$i; \
    300           else file=$(srcdir)/$$i; fi; \
     299          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     300          else file=$$i; fi; \
    301301          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    302302          case "$$ext" in \
    303303            5*) ;; \
     
    341341          esac; \
    342342        done; \
    343343        for i in $$list; do \
    344           if test -f $$i; then file=$$i; \
    345           else file=$(srcdir)/$$i; fi; \
     344          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     345          else file=$$i; fi; \
    346346          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    347347          case "$$ext" in \
    348348            8*) ;; \
  • man/ru/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/ru/Makefile.in shadow-4.1.4.1/man/ru/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    230230        @for dep in $?; do \
    231231          case '$(am__configure_deps)' in \
    232232            *$$dep*) \
    233               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    234                 && { if test -f $@; then exit 0; else break; fi; }; \
     233              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     234                && exit 0; \
    235235              exit 1;; \
    236236          esac; \
    237237        done; \
     
    272272          esac; \
    273273        done; \
    274274        for i in $$list; do \
    275           if test -f $$i; then file=$$i; \
    276           else file=$(srcdir)/$$i; fi; \
     275          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     276          else file=$$i; fi; \
    277277          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    278278          case "$$ext" in \
    279279            1*) ;; \
     
    317317          esac; \
    318318        done; \
    319319        for i in $$list; do \
    320           if test -f $$i; then file=$$i; \
    321           else file=$(srcdir)/$$i; fi; \
     320          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     321          else file=$$i; fi; \
    322322          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    323323          case "$$ext" in \
    324324            3*) ;; \
     
    362362          esac; \
    363363        done; \
    364364        for i in $$list; do \
    365           if test -f $$i; then file=$$i; \
    366           else file=$(srcdir)/$$i; fi; \
     365          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     366          else file=$$i; fi; \
    367367          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    368368          case "$$ext" in \
    369369            5*) ;; \
     
    407407          esac; \
    408408        done; \
    409409        for i in $$list; do \
    410           if test -f $$i; then file=$$i; \
    411           else file=$(srcdir)/$$i; fi; \
     410          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     411          else file=$$i; fi; \
    412412          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    413413          case "$$ext" in \
    414414            8*) ;; \
  • man/sv/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/sv/Makefile.in shadow-4.1.4.1/man/sv/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    228228        @for dep in $?; do \
    229229          case '$(am__configure_deps)' in \
    230230            *$$dep*) \
    231               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    232                 && { if test -f $@; then exit 0; else break; fi; }; \
     231              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     232                && exit 0; \
    233233              exit 1;; \
    234234          esac; \
    235235        done; \
     
    270270          esac; \
    271271        done; \
    272272        for i in $$list; do \
    273           if test -f $$i; then file=$$i; \
    274           else file=$(srcdir)/$$i; fi; \
     273          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     274          else file=$$i; fi; \
    275275          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    276276          case "$$ext" in \
    277277            1*) ;; \
     
    315315          esac; \
    316316        done; \
    317317        for i in $$list; do \
    318           if test -f $$i; then file=$$i; \
    319           else file=$(srcdir)/$$i; fi; \
     318          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     319          else file=$$i; fi; \
    320320          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    321321          case "$$ext" in \
    322322            3*) ;; \
     
    360360          esac; \
    361361        done; \
    362362        for i in $$list; do \
    363           if test -f $$i; then file=$$i; \
    364           else file=$(srcdir)/$$i; fi; \
     363          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     364          else file=$$i; fi; \
    365365          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    366366          case "$$ext" in \
    367367            5*) ;; \
     
    405405          esac; \
    406406        done; \
    407407        for i in $$list; do \
    408           if test -f $$i; then file=$$i; \
    409           else file=$(srcdir)/$$i; fi; \
     408          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     409          else file=$$i; fi; \
    410410          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    411411          case "$$ext" in \
    412412            8*) ;; \
  • man/tr/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/tr/Makefile.in shadow-4.1.4.1/man/tr/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    216216        @for dep in $?; do \
    217217          case '$(am__configure_deps)' in \
    218218            *$$dep*) \
    219               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    220                 && { if test -f $@; then exit 0; else break; fi; }; \
     219              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     220                && exit 0; \
    221221              exit 1;; \
    222222          esac; \
    223223        done; \
     
    258258          esac; \
    259259        done; \
    260260        for i in $$list; do \
    261           if test -f $$i; then file=$$i; \
    262           else file=$(srcdir)/$$i; fi; \
     261          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     262          else file=$$i; fi; \
    263263          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    264264          case "$$ext" in \
    265265            1*) ;; \
     
    303303          esac; \
    304304        done; \
    305305        for i in $$list; do \
    306           if test -f $$i; then file=$$i; \
    307           else file=$(srcdir)/$$i; fi; \
     306          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     307          else file=$$i; fi; \
    308308          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    309309          case "$$ext" in \
    310310            5*) ;; \
     
    348348          esac; \
    349349        done; \
    350350        for i in $$list; do \
    351           if test -f $$i; then file=$$i; \
    352           else file=$(srcdir)/$$i; fi; \
     351          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     352          else file=$$i; fi; \
    353353          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    354354          case "$$ext" in \
    355355            8*) ;; \
  • man/zh_CN/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/zh_CN/Makefile.in shadow-4.1.4.1/man/zh_CN/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    217217        @for dep in $?; do \
    218218          case '$(am__configure_deps)' in \
    219219            *$$dep*) \
    220               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    221                 && { if test -f $@; then exit 0; else break; fi; }; \
     220              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     221                && exit 0; \
    222222              exit 1;; \
    223223          esac; \
    224224        done; \
     
    259259          esac; \
    260260        done; \
    261261        for i in $$list; do \
    262           if test -f $$i; then file=$$i; \
    263           else file=$(srcdir)/$$i; fi; \
     262          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     263          else file=$$i; fi; \
    264264          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    265265          case "$$ext" in \
    266266            1*) ;; \
     
    304304          esac; \
    305305        done; \
    306306        for i in $$list; do \
    307           if test -f $$i; then file=$$i; \
    308           else file=$(srcdir)/$$i; fi; \
     307          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     308          else file=$$i; fi; \
    309309          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    310310          case "$$ext" in \
    311311            5*) ;; \
     
    349349          esac; \
    350350        done; \
    351351        for i in $$list; do \
    352           if test -f $$i; then file=$$i; \
    353           else file=$(srcdir)/$$i; fi; \
     352          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     353          else file=$$i; fi; \
    354354          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    355355          case "$$ext" in \
    356356            8*) ;; \
  • man/zh_TW/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/man/zh_TW/Makefile.in shadow-4.1.4.1/man/zh_TW/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    217217        @for dep in $?; do \
    218218          case '$(am__configure_deps)' in \
    219219            *$$dep*) \
    220               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    221                 && { if test -f $@; then exit 0; else break; fi; }; \
     220              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     221                && exit 0; \
    222222              exit 1;; \
    223223          esac; \
    224224        done; \
     
    259259          esac; \
    260260        done; \
    261261        for i in $$list; do \
    262           if test -f $$i; then file=$$i; \
    263           else file=$(srcdir)/$$i; fi; \
     262          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     263          else file=$$i; fi; \
    264264          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    265265          case "$$ext" in \
    266266            1*) ;; \
     
    304304          esac; \
    305305        done; \
    306306        for i in $$list; do \
    307           if test -f $$i; then file=$$i; \
    308           else file=$(srcdir)/$$i; fi; \
     307          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     308          else file=$$i; fi; \
    309309          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    310310          case "$$ext" in \
    311311            5*) ;; \
     
    349349          esac; \
    350350        done; \
    351351        for i in $$list; do \
    352           if test -f $$i; then file=$$i; \
    353           else file=$(srcdir)/$$i; fi; \
     352          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
     353          else file=$$i; fi; \
    354354          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
    355355          case "$$ext" in \
    356356            8*) ;; \
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/src/chage.c shadow-4.1.4.1/src/chage.c
    old new  
    808808
    809809        ruid = getuid ();
    810810        rgid = getgid ();
    811         amroot = (ruid == 0);
     811        amroot = 1; /* (ruid == 0); */
    812812#ifdef WITH_SELINUX
    813813        if (amroot && (is_selinux_enabled () > 0)) {
    814814                amroot = (selinux_check_passwd_access (PASSWD__ROOTOK) == 0);
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/src/chfn.c shadow-4.1.4.1/src/chfn.c
    old new  
    719719
    720720        SYSLOG ((LOG_INFO, "changed user '%s' information", user));
    721721
    722         nscd_flush_cache ("passwd");
     722//      nscd_flush_cache ("passwd");
    723723
    724724        closelog ();
    725725        exit (E_SUCCESS);
  • src/chgpasswd.c

    diff -Naur shadow-4.1.4.1.orig/src/chgpasswd.c shadow-4.1.4.1/src/chgpasswd.c
    old new  
    537537
    538538        close_files ();
    539539
    540         nscd_flush_cache ("group");
     540//      nscd_flush_cache ("group");
    541541
    542542        return (0);
    543543}
  • src/chpasswd.c

    diff -Naur shadow-4.1.4.1.orig/src/chpasswd.c shadow-4.1.4.1/src/chpasswd.c
    old new  
    578578        close_files ();
    579579#endif
    580580
    581         nscd_flush_cache ("passwd");
     581//      nscd_flush_cache ("passwd");
    582582
    583583        return (0);
    584584}
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/src/chsh.c shadow-4.1.4.1/src/chsh.c
    old new  
    5656#include "exitcodes.h"
    5757
    5858#ifndef SHELLS_FILE
    59 #define SHELLS_FILE "/etc/shells"
     59#define SHELLS_FILE SYSCONFDIR"/shells"
    6060#endif
    6161/*
    6262 * Global variables
     
    443443        /*
    444444         * This command behaves different for root and non-root users.
    445445         */
    446         amroot = (getuid () == 0);
     446        amroot = 1; //(getuid () == 0);
    447447
    448448        /*
    449449         * Get the program name. The program name is used as a prefix to
     
    543543
    544544        SYSLOG ((LOG_INFO, "changed user '%s' shell to '%s'", user, loginsh));
    545545
    546         nscd_flush_cache ("passwd");
     546//      nscd_flush_cache ("passwd");
    547547
    548548        closelog ();
    549549        exit (E_SUCCESS);
  • src/gpasswd.c

    diff -Naur shadow-4.1.4.1.orig/src/gpasswd.c shadow-4.1.4.1/src/gpasswd.c
    old new  
    8686/* The UID of the caller */
    8787static uid_t bywho;
    8888/* Indicate if gpasswd was called by root */
    89 #define amroot  (0 == bywho)
     89#define amroot  1 /* (0 == bywho) */
    9090
    9191/* The number of retries for th user to provide and repeat a new password */
    9292#ifndef RETRIES
     
    11731173         * output, etc.
    11741174         */
    11751175      output:
     1176/*
    11761177        if (setuid (0) != 0) {
    11771178                fputs (_("Cannot change ID to root.\n"), stderr);
    11781179                SYSLOG ((LOG_ERR, "can't setuid(0)"));
    11791180                closelog ();
    11801181                exit (E_NOPERM);
    11811182        }
     1183*/
    11821184        pwd_init ();
    11831185
    11841186        open_files ();
     
    11911193
    11921194        close_files ();
    11931195
    1194         nscd_flush_cache ("group");
     1196//      nscd_flush_cache ("group");
    11951197
    11961198        exit (E_SUCCESS);
    11971199}
  • src/groupadd.c

    diff -Naur shadow-4.1.4.1.orig/src/groupadd.c shadow-4.1.4.1/src/groupadd.c
    old new  
    602602        grp_update ();
    603603        close_files ();
    604604
    605         nscd_flush_cache ("group");
     605//      nscd_flush_cache ("group");
    606606
    607607        exit (E_SUCCESS);
    608608        /*@notreached@*/
  • src/groupdel.c

    diff -Naur shadow-4.1.4.1.orig/src/groupdel.c shadow-4.1.4.1/src/groupdel.c
    old new  
    426426
    427427        close_files ();
    428428
    429         nscd_flush_cache ("group");
     429//      nscd_flush_cache ("group");
    430430
    431431        return E_SUCCESS;
    432432}
  • src/groupmod.c

    diff -Naur shadow-4.1.4.1.orig/src/groupmod.c shadow-4.1.4.1/src/groupmod.c
    old new  
    812812
    813813        close_files ();
    814814
    815         nscd_flush_cache ("group");
     815//      nscd_flush_cache ("group");
    816816
    817817        return E_SUCCESS;
    818818}
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/src/grpck.c shadow-4.1.4.1/src/grpck.c
    old new  
    836836        /* Commit the change in the database if needed */
    837837        close_files (changed);
    838838
    839         nscd_flush_cache ("group");
     839//      nscd_flush_cache ("group");
    840840
    841841        /*
    842842         * Tell the user what we did and exit.
  • src/grpconv.c

    diff -Naur shadow-4.1.4.1.orig/src/grpconv.c shadow-4.1.4.1/src/grpconv.c
    old new  
    217217        }
    218218        gr_locked = false;
    219219
    220         nscd_flush_cache ("group");
     220//      nscd_flush_cache ("group");
    221221
    222222        return 0;
    223223}
  • src/grpunconv.c

    diff -Naur shadow-4.1.4.1.orig/src/grpunconv.c shadow-4.1.4.1/src/grpunconv.c
    old new  
    186186                /* continue */
    187187        }
    188188
    189         nscd_flush_cache ("group");
     189//      nscd_flush_cache ("group");
    190190
    191191        return 0;
    192192}
  • src/login_nopam.c

    diff -Naur shadow-4.1.4.1.orig/src/login_nopam.c shadow-4.1.4.1/src/login_nopam.c
    old new  
    5959
    6060 /* Path name of the access control file. */
    6161#ifndef TABLE
    62 #define TABLE   "/etc/login.access"
     62#define TABLE   SYSCONFDIR"/login.access"
    6363#endif
    6464
    6565/* Delimiters for fields and for lists of users, ttys or hosts. */
  • src/logoutd.c

    diff -Naur shadow-4.1.4.1.orig/src/logoutd.c shadow-4.1.4.1/src/logoutd.c
    old new  
    5050#endif
    5151
    5252#ifndef HUP_MESG_FILE
    53 #define HUP_MESG_FILE "/etc/logoutd.mesg"
     53#define HUP_MESG_FILE SYSCONFDIR"/logoutd.mesg"
    5454#endif
    5555
    5656/* local function prototypes */
  • src/Makefile.am

    diff -Naur shadow-4.1.4.1.orig/src/Makefile.am shadow-4.1.4.1/src/Makefile.am
    old new  
    33        .indent.pro
    44
    55ubindir = ${prefix}/bin
    6 usbindir = ${prefix}/sbin
     6usbindir = ${prefix}/bin
    77suidperms = 4755
    88
    99INCLUDES = \
     
    5656LDADD          = $(INTLLIBS) \
    5757                 $(top_builddir)/libmisc/libmisc.a \
    5858                 $(top_builddir)/lib/libshadow.la
    59 AM_CPPFLAGS    = -DLOCALEDIR=\"$(datadir)/locale\"
     59AM_CPPFLAGS    = -DSYSCONFDIR=\"$(sysconfdir)\" -DLOCALEDIR=\"$(datadir)/locale\" -DSG=\"`echo sg | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`\" -DVIGR=\"`echo vigr | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`\"
    6060
    6161if ACCT_TOOLS_SETUID
    6262LIBPAM_SUID  = $(LIBPAM)
     
    106106
    107107install-am: all-am
    108108        $(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
    109         ln -sf newgrp   $(DESTDIR)$(ubindir)/sg
    110         ln -sf vipw     $(DESTDIR)$(usbindir)/vigr
     109        ln -sf `echo newgrp | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(ubindir)/`echo sg | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`
     110        ln -sf `echo vipw | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(usbindir)/`echo vigr | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`
    111111        for i in $(suidbins); do \
    112                 chmod -f $(suidperms) $(DESTDIR)$(bindir)/$$i; \
     112                chmod -f 4755 $(DESTDIR)$(bindir)/`echo $$i | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
    113113        done
    114114        for i in $(suidubins); do \
    115                 chmod -f $(suidperms) $(DESTDIR)$(ubindir)/$$i; \
     115                chmod -f 4755 $(DESTDIR)$(ubindir)/`echo $$i | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
    116116        done
  • src/Makefile.in

    diff -Naur shadow-4.1.4.1.orig/src/Makefile.in shadow-4.1.4.1/src/Makefile.in
    old new  
    1 # Makefile.in generated by automake 1.10.2 from Makefile.am.
     1# Makefile.in generated by automake 1.10.1 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     
    382382        .indent.pro
    383383
    384384ubindir = ${prefix}/bin
    385 usbindir = ${prefix}/sbin
     385usbindir = ${prefix}/bin
    386386suidperms = 4755
    387387INCLUDES = \
    388388        -I${top_srcdir}/lib \
     
    394394                 $(top_builddir)/libmisc/libmisc.a \
    395395                 $(top_builddir)/lib/libshadow.la
    396396
    397 AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\"
     397AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" -DLOCALEDIR=\"$(datadir)/locale\" -DSG=\"`echo sg | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`\" -DVIGR=\"`echo vigr | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`\"
    398398@ACCT_TOOLS_SETUID_FALSE@LIBPAM_SUID =
    399399@ACCT_TOOLS_SETUID_TRUE@LIBPAM_SUID = $(LIBPAM)
    400400@USE_PAM_FALSE@LIBCRYPT_NOPAM = $(LIBCRYPT)
     
    442442        @for dep in $?; do \
    443443          case '$(am__configure_deps)' in \
    444444            *$$dep*) \
    445               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
    446                 && { if test -f $@; then exit 0; else break; fi; }; \
     445              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
     446                && exit 0; \
    447447              exit 1;; \
    448448          esac; \
    449449        done; \
     
    760760        unique=`for i in $$list; do \
    761761            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    762762          done | \
    763           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
     763          $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
    764764              END { if (nonempty) { for (i in files) print i; }; }'`; \
    765765        mkid -fID $$unique
    766766tags: TAGS
     
    941941
    942942install-am: all-am
    943943        $(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
    944         ln -sf newgrp   $(DESTDIR)$(ubindir)/sg
    945         ln -sf vipw     $(DESTDIR)$(usbindir)/vigr
     944        ln -sf `echo newgrp | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(ubindir)/`echo sg | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`
     945        ln -sf `echo vipw | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(usbindir)/`echo vigr | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`
    946946        for i in $(suidbins); do \
    947                 chmod -f $(suidperms) $(DESTDIR)$(bindir)/$$i; \
     947                chmod -f 4755 $(DESTDIR)$(bindir)/`echo $$i | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
    948948        done
    949949        for i in $(suidubins); do \
    950                 chmod -f $(suidperms) $(DESTDIR)$(ubindir)/$$i; \
     950                chmod -f 4755 $(DESTDIR)$(ubindir)/`echo $$i | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
    951951        done
    952952# Tell versions [3.59,3.63) of GNU make to not export all variables.
    953953# Otherwise a system limit (for SysV at least) may be exceeded.
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/src/newgrp.c shadow-4.1.4.1/src/newgrp.c
    old new  
    296296                if ((pid_t)-1 == child) {
    297297                        /* error in fork() */
    298298                        fprintf (stderr, _("%s: failure forking: %s\n"),
    299                                  is_newgrp ? "newgrp" : "sg", strerror (errno));
     299                                 is_newgrp ? "newgrp" : SG, strerror (errno));
    300300#ifdef WITH_AUDIT
    301301                        if (group) {
    302302                                snprintf (audit_buf, sizeof(audit_buf),
     
    417417         */
    418418        Prog = Basename (argv[0]);
    419419        is_newgrp = (strcmp (Prog, "newgrp") == 0);
    420         OPENLOG (is_newgrp ? "newgrp" : "sg");
     420        OPENLOG (is_newgrp ? "newgrp" : SG);
    421421        gid = getgid ();
    422422        argc--;
    423423        argv++;
  • src/newusers.c

    diff -Naur shadow-4.1.4.1.orig/src/newusers.c shadow-4.1.4.1/src/newusers.c
    old new  
    10411041
    10421042        close_files ();
    10431043
    1044         nscd_flush_cache ("passwd");
    1045         nscd_flush_cache ("group");
     1044//      nscd_flush_cache ("passwd");
     1045//      nscd_flush_cache ("group");
    10461046
    10471047#ifdef USE_PAM
    10481048        unsigned int i;
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/src/passwd.c shadow-4.1.4.1/src/passwd.c
    old new  
    775775         * The program behaves differently when executed by root than when
    776776         * executed by a normal user.
    777777         */
    778         amroot = (getuid () == 0);
     778        amroot = 1; //(getuid () == 0);
    779779
    780780        /*
    781781         * Get the program name. The program name is used as a prefix to
     
    10881088                exit (E_SUCCESS);
    10891089        }
    10901090#endif                          /* USE_PAM */
     1091/*
    10911092        if (setuid (0) != 0) {
    10921093                fputs (_("Cannot change ID to root.\n"), stderr);
    10931094                SYSLOG ((LOG_ERR, "can't setuid(0)"));
    10941095                closelog ();
    10951096                exit (E_NOPERM);
    10961097        }
     1098*/
    10971099        if (spw_file_present ()) {
    10981100                update_shadow ();
    10991101        } else {
    11001102                update_noshadow ();
    11011103        }
    11021104
    1103         nscd_flush_cache ("passwd");
    1104         nscd_flush_cache ("group");
     1105        //nscd_flush_cache ("passwd");
     1106        //nscd_flush_cache ("group");
    11051107
    11061108        SYSLOG ((LOG_INFO, "password for '%s' changed by '%s'", name, myname));
    11071109        closelog ();
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/src/pwck.c shadow-4.1.4.1/src/pwck.c
    old new  
    704704
    705705        close_files (changed);
    706706
    707         nscd_flush_cache ("passwd");
     707//      nscd_flush_cache ("passwd");
    708708
    709709        /*
    710710         * Tell the user what we did and exit.
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/src/pwconv.c shadow-4.1.4.1/src/pwconv.c
    old new  
    269269                }
    270270        }
    271271
    272         nscd_flush_cache ("passwd");
     272//      nscd_flush_cache ("passwd");
    273273
    274274        return E_SUCCESS;
    275275}
  • src/pwunconv.c

    diff -Naur shadow-4.1.4.1.orig/src/pwunconv.c shadow-4.1.4.1/src/pwunconv.c
    old new  
    194194                /* continue */
    195195        }
    196196
    197         nscd_flush_cache ("passwd");
     197//      nscd_flush_cache ("passwd");
    198198
    199199        return 0;
    200200}
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/src/suauth.c shadow-4.1.4.1/src/suauth.c
    old new  
    4040#include "prototypes.h"
    4141
    4242#ifndef SUAUTHFILE
    43 #define SUAUTHFILE "/etc/suauth"
     43#define SUAUTHFILE SYSCONFDIR"/suauth"
    4444#endif
    4545
    4646#define NOACTION        0
  • src/useradd.c

    diff -Naur shadow-4.1.4.1.orig/src/useradd.c shadow-4.1.4.1/src/useradd.c
    old new  
    6767#include "shadowio.h"
    6868
    6969#ifndef SKEL_DIR
    70 #define SKEL_DIR "/etc/skel"
     70#define SKEL_DIR SYSCONFDIR"/skel"
    7171#endif
    7272#ifndef USER_DEFAULTS_FILE
    73 #define USER_DEFAULTS_FILE "/etc/default/useradd"
    74 #define NEW_USER_FILE "/etc/default/nuaddXXXXXX"
     73#define USER_DEFAULTS_FILE SYSCONFDIR"/default/useradd"
     74#define NEW_USER_FILE SYSCONFDIR"/default/nuaddXXXXXX"
    7575#endif
    7676/*
    7777 * Needed for MkLinux DR1/2/2.1 - J.
     
    20342034        selinux_update_mapping ();
    20352035#endif
    20362036
    2037         nscd_flush_cache ("passwd");
    2038         nscd_flush_cache ("group");
     2037//      nscd_flush_cache ("passwd");
     2038//      nscd_flush_cache ("group");
    20392039
    20402040        return E_SUCCESS;
    20412041}
  • src/userdel.c

    diff -Naur shadow-4.1.4.1.orig/src/userdel.c shadow-4.1.4.1/src/userdel.c
    old new  
    993993        user_cancel (user_name);
    994994        close_files ();
    995995
    996         nscd_flush_cache ("passwd");
    997         nscd_flush_cache ("group");
     996//      nscd_flush_cache ("passwd");
     997//      nscd_flush_cache ("group");
    998998
    999999        return ((0 != errors) ? E_HOMEDIR : E_SUCCESS);
    10001000}
  • src/usermod.c

    diff -Naur shadow-4.1.4.1.orig/src/usermod.c shadow-4.1.4.1/src/usermod.c
    old new  
    17811781        }
    17821782        close_files ();
    17831783
    1784         nscd_flush_cache ("passwd");
    1785         nscd_flush_cache ("group");
     1784//      nscd_flush_cache ("passwd");
     1785//      nscd_flush_cache ("group");
    17861786
    17871787#ifdef WITH_SELINUX
    17881788        if (Zflg) {
  • shadow-4.1.4.1

    diff -Naur shadow-4.1.4.1.orig/src/vipw.c shadow-4.1.4.1/src/vipw.c
    old new  
    323323        (void) textdomain (PACKAGE);
    324324
    325325        progname = ((a = strrchr (*argv, '/')) ? a + 1 : *argv);
    326         do_vipw = (strcmp (progname, "vigr") != 0);
     326        do_vipw = (strcmp (progname, VIGR) != 0);
    327327
    328328        OPENLOG (do_vipw ? "vipw" : "vigr");
    329329
     
    403403#endif
    404404        }
    405405
    406         nscd_flush_cache ("passwd");
    407         nscd_flush_cache ("group");
     406//      nscd_flush_cache ("passwd");
     407//      nscd_flush_cache ("group");
    408408
    409409        return E_SUCCESS;
    410410}
Note: See TracBrowser for help on using the repository browser.