source:
clfs-sysroot/patches/shadow-4.1.2.2-sysroot_hacks-2.patch@
b526bf9
Last change on this file since b526bf9 was 63c1d49, checked in by , 16 years ago | |
---|---|
|
|
File size: 32.4 KB |
-
contrib/Makefile.in
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 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.2.2.orig/contrib/Makefile.in shadow-4.1.2.2/contrib/Makefile.in
old new 184 184 srcdir = @srcdir@ 185 185 sysconfdir = @sysconfdir@ 186 186 target_alias = @target_alias@ 187 top_build_prefix = @top_build_prefix@ 187 188 top_builddir = @top_builddir@ 188 189 top_srcdir = @top_srcdir@ 189 190 EXTRA_DIST = README adduser.c adduser-old.c adduser.sh adduser2.sh \ -
doc/Makefile.in
diff -Naur shadow-4.1.2.2.orig/doc/Makefile.in shadow-4.1.2.2/doc/Makefile.in
old new 184 184 srcdir = @srcdir@ 185 185 sysconfdir = @sysconfdir@ 186 186 target_alias = @target_alias@ 187 top_build_prefix = @top_build_prefix@ 187 188 top_builddir = @top_builddir@ 188 189 top_srcdir = @top_srcdir@ 189 190 EXTRA_DIST = HOWTO README.limits \ -
etc/Makefile.in
diff -Naur shadow-4.1.2.2.orig/etc/Makefile.in shadow-4.1.2.2/etc/Makefile.in
old new 209 209 srcdir = @srcdir@ 210 210 sysconfdir = @sysconfdir@ 211 211 target_alias = @target_alias@ 212 top_build_prefix = @top_build_prefix@ 212 213 top_builddir = @top_builddir@ 213 214 top_srcdir = @top_srcdir@ 214 215 sysconf_DATA = login.defs -
etc/pam.d/Makefile.in
diff -Naur shadow-4.1.2.2.orig/etc/pam.d/Makefile.in shadow-4.1.2.2/etc/pam.d/Makefile.in
old new 194 194 srcdir = @srcdir@ 195 195 sysconfdir = @sysconfdir@ 196 196 target_alias = @target_alias@ 197 top_build_prefix = @top_build_prefix@ 197 198 top_builddir = @top_builddir@ 198 199 top_srcdir = @top_srcdir@ 199 200 pamd_files = \ -
lib/commonio.c
diff -Naur shadow-4.1.2.2.orig/lib/commonio.c shadow-4.1.2.2/lib/commonio.c
old new 183 183 if (!fp) 184 184 return NULL; 185 185 186 #ifdef HAVE_FCHOWN187 if (fchown (fileno (fp), sb->st_uid, sb->st_gid))188 goto fail;189 #else190 if (chown (name, sb->st_mode))191 goto fail;192 #endif193 194 186 #ifdef HAVE_FCHMOD 195 187 if (fchmod (fileno (fp), sb->st_mode & 0664)) 196 188 goto fail; … … 353 345 if (lock_count == 0) { 354 346 /* Tell nscd when lock count goes to zero, 355 347 if any of the files were changed. */ 348 356 349 if (nscd_need_reload) { 357 nscd_flush_cache ("passwd");358 nscd_flush_cache ("group");350 // nscd_flush_cache ("passwd"); 351 // nscd_flush_cache ("group"); 359 352 nscd_need_reload = 0; 360 353 } 361 354 #ifdef HAVE_LCKPWDF … … 749 742 * Default permissions for new [g]shadow files. 750 743 * (passwd and group always exist...) 751 744 */ 752 sb.st_mode = 0 400;745 sb.st_mode = 0600; 753 746 sb.st_uid = 0; 754 747 sb.st_gid = 0; 755 748 } -
lib/defines.h
diff -Naur shadow-4.1.2.2.orig/lib/defines.h shadow-4.1.2.2/lib/defines.h
old new 265 265 (strncpy((A), (B), sizeof(A) - 1), (A)[sizeof(A) - 1] = '\0') 266 266 267 267 #ifndef PASSWD_FILE 268 #define PASSWD_FILE "/etc/passwd"268 #define PASSWD_FILE SYSCONFDIR"/passwd" 269 269 #endif 270 270 271 271 #ifndef GROUP_FILE 272 #define GROUP_FILE "/etc/group"272 #define GROUP_FILE SYSCONFDIR"/group" 273 273 #endif 274 274 275 275 #ifndef SHADOW_FILE 276 #define SHADOW_FILE "/etc/shadow"276 #define SHADOW_FILE SYSCONFDIR"/shadow" 277 277 #endif 278 278 279 279 #ifdef SHADOWGRP 280 280 #ifndef SGROUP_FILE 281 #define SGROUP_FILE "/etc/gshadow"281 #define SGROUP_FILE SYSCONFDIR"/gshadow" 282 282 #endif 283 283 #endif 284 284 -
shadow-4.1.2.2
diff -Naur shadow-4.1.2.2.orig/lib/getdef.c shadow-4.1.2.2/lib/getdef.c
old new 127 127 }; 128 128 129 129 #ifndef LOGINDEFS 130 #define LOGINDEFS "/etc/login.defs"130 #define LOGINDEFS SYSCONFDIR"/login.defs" 131 131 #endif 132 132 133 133 static char def_fname[] = LOGINDEFS; /* login config defs file */ -
lib/gshadow_.h
diff -Naur shadow-4.1.2.2.orig/lib/gshadow_.h shadow-4.1.2.2/lib/gshadow_.h
old new 71 71 int putsgent (); 72 72 #endif 73 73 74 #define GSHADOW "/etc/gshadow"74 #define GSHADOW SYSCONFDIR"/gshadow" 75 75 #endif /* ifndef _H_GSHADOW */ -
lib/Makefile.am
diff -Naur shadow-4.1.2.2.orig/lib/Makefile.am shadow-4.1.2.2/lib/Makefile.am
old new 2 2 AUTOMAKE_OPTIONS = 1.0 foreign 3 3 4 4 DEFS = 5 AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" 5 6 6 7 noinst_LTLIBRARIES = libshadow.la 7 8 -
lib/Makefile.in
diff -Naur shadow-4.1.2.2.orig/lib/Makefile.in shadow-4.1.2.2/lib/Makefile.in
old new 206 206 srcdir = @srcdir@ 207 207 sysconfdir = @sysconfdir@ 208 208 target_alias = @target_alias@ 209 top_build_prefix = @top_build_prefix@ 209 210 top_builddir = @top_builddir@ 210 211 top_srcdir = @top_srcdir@ 211 212 AUTOMAKE_OPTIONS = 1.0 foreign 213 AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" 212 214 noinst_LTLIBRARIES = libshadow.la 213 215 libshadow_la_LDFLAGS = -version-info 0:0:0 214 216 libshadow_la_SOURCES = \ -
shadow-4.1.2.2
diff -Naur shadow-4.1.2.2.orig/lib/port.h shadow-4.1.2.2/lib/port.h
old new 52 52 * PORT_DAY - Day of the week to a bit value (0 = Sunday). 53 53 */ 54 54 55 #define PORTS "/etc/porttime"55 #define PORTS SYSCONFDIR"/porttime" 56 56 #define PORT_IDS 64 57 57 #define PORT_TTY 64 58 58 #define PORT_TIMES 24 -
libmisc/limits.c
diff -Naur shadow-4.1.2.2.orig/libmisc/limits.c shadow-4.1.2.2/libmisc/limits.c
old new 54 54 #endif 55 55 #ifdef LIMITS 56 56 #ifndef LIMITS_FILE 57 #define LIMITS_FILE "/etc/limits"57 #define LIMITS_FILE SYSCONFDIR"/limits" 58 58 #endif 59 59 #define LOGIN_ERROR_RLIMIT 1 60 60 #define LOGIN_ERROR_LOGIN 2 -
libmisc/Makefile.am
diff -Naur shadow-4.1.2.2.orig/libmisc/Makefile.am shadow-4.1.2.2/libmisc/Makefile.am
old new 1 1 2 2 EXTRA_DIST = .indent.pro xgetXXbyYY.c 3 3 4 AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" 5 4 6 INCLUDES = -I$(top_srcdir)/lib 5 7 6 8 noinst_LIBRARIES = libmisc.a -
libmisc/Makefile.in
diff -Naur shadow-4.1.2.2.orig/libmisc/Makefile.in shadow-4.1.2.2/libmisc/Makefile.in
old new 223 223 srcdir = @srcdir@ 224 224 sysconfdir = @sysconfdir@ 225 225 target_alias = @target_alias@ 226 top_build_prefix = @top_build_prefix@ 226 227 top_builddir = @top_builddir@ 227 228 top_srcdir = @top_srcdir@ 228 229 EXTRA_DIST = .indent.pro xgetXXbyYY.c 230 AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" 229 231 INCLUDES = -I$(top_srcdir)/lib 230 232 noinst_LIBRARIES = libmisc.a 231 233 libmisc_a_SOURCES = \ -
shadow-4.1.2.2
diff -Naur shadow-4.1.2.2.orig/Makefile.in shadow-4.1.2.2/Makefile.in
old new 209 209 srcdir = @srcdir@ 210 210 sysconfdir = @sysconfdir@ 211 211 target_alias = @target_alias@ 212 top_build_prefix = @top_build_prefix@ 212 213 top_builddir = @top_builddir@ 213 214 top_srcdir = @top_srcdir@ 214 215 EXTRA_DIST = NEWS README TODO shadow.spec.in -
man/cs/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/cs/Makefile.in shadow-4.1.2.2/man/cs/Makefile.in
old new 188 188 srcdir = @srcdir@ 189 189 sysconfdir = @sysconfdir@ 190 190 target_alias = @target_alias@ 191 top_build_prefix = @top_build_prefix@ 191 192 top_builddir = @top_builddir@ 192 193 top_srcdir = @top_srcdir@ 193 194 man_MANS = \ -
man/de/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/de/Makefile.in shadow-4.1.2.2/man/de/Makefile.in
old new 190 190 srcdir = @srcdir@ 191 191 sysconfdir = @sysconfdir@ 192 192 target_alias = @target_alias@ 193 top_build_prefix = @top_build_prefix@ 193 194 top_builddir = @top_builddir@ 194 195 top_srcdir = @top_srcdir@ 195 196 man_MANS = \ -
man/es/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/es/Makefile.in shadow-4.1.2.2/man/es/Makefile.in
old new 188 188 srcdir = @srcdir@ 189 189 sysconfdir = @sysconfdir@ 190 190 target_alias = @target_alias@ 191 top_build_prefix = @top_build_prefix@ 191 192 top_builddir = @top_builddir@ 192 193 top_srcdir = @top_srcdir@ 193 194 man_MANS = \ -
man/fi/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/fi/Makefile.in shadow-4.1.2.2/man/fi/Makefile.in
old new 185 185 srcdir = @srcdir@ 186 186 sysconfdir = @sysconfdir@ 187 187 target_alias = @target_alias@ 188 top_build_prefix = @top_build_prefix@ 188 189 top_builddir = @top_builddir@ 189 190 top_srcdir = @top_srcdir@ 190 191 man_MANS = \ -
man/fr/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/fr/Makefile.in shadow-4.1.2.2/man/fr/Makefile.in
old new 192 192 srcdir = @srcdir@ 193 193 sysconfdir = @sysconfdir@ 194 194 target_alias = @target_alias@ 195 top_build_prefix = @top_build_prefix@ 195 196 top_builddir = @top_builddir@ 196 197 top_srcdir = @top_srcdir@ 197 198 man_MANS = chage.1 chfn.1 chpasswd.8 chsh.1 expiry.1 faillog.5 \ -
man/hu/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/hu/Makefile.in shadow-4.1.2.2/man/hu/Makefile.in
old new 188 188 srcdir = @srcdir@ 189 189 sysconfdir = @sysconfdir@ 190 190 target_alias = @target_alias@ 191 top_build_prefix = @top_build_prefix@ 191 192 top_builddir = @top_builddir@ 192 193 top_srcdir = @top_srcdir@ 193 194 man_MANS = \ -
man/id/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/id/Makefile.in shadow-4.1.2.2/man/id/Makefile.in
old new 186 186 srcdir = @srcdir@ 187 187 sysconfdir = @sysconfdir@ 188 188 target_alias = @target_alias@ 189 top_build_prefix = @top_build_prefix@ 189 190 top_builddir = @top_builddir@ 190 191 top_srcdir = @top_srcdir@ 191 192 man_MANS = \ -
man/it/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/it/Makefile.in shadow-4.1.2.2/man/it/Makefile.in
old new 192 192 srcdir = @srcdir@ 193 193 sysconfdir = @sysconfdir@ 194 194 target_alias = @target_alias@ 195 top_build_prefix = @top_build_prefix@ 195 196 top_builddir = @top_builddir@ 196 197 top_srcdir = @top_srcdir@ 197 198 man_MANS = chage.1 chfn.1 chpasswd.8 chsh.1 expiry.1 faillog.5 \ -
man/ja/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/ja/Makefile.in shadow-4.1.2.2/man/ja/Makefile.in
old new 189 189 srcdir = @srcdir@ 190 190 sysconfdir = @sysconfdir@ 191 191 target_alias = @target_alias@ 192 top_build_prefix = @top_build_prefix@ 192 193 top_builddir = @top_builddir@ 193 194 top_srcdir = @top_srcdir@ 194 195 man_MANS = chage.1 chfn.1 chpasswd.8 chsh.1 expiry.1 faillog.5 \ -
man/ko/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/ko/Makefile.in shadow-4.1.2.2/man/ko/Makefile.in
old new 188 188 srcdir = @srcdir@ 189 189 sysconfdir = @sysconfdir@ 190 190 target_alias = @target_alias@ 191 top_build_prefix = @top_build_prefix@ 191 192 top_builddir = @top_builddir@ 192 193 top_srcdir = @top_srcdir@ 193 194 man_MANS = \ -
man/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/Makefile.in shadow-4.1.2.2/man/Makefile.in
old new 204 204 srcdir = @srcdir@ 205 205 sysconfdir = @sysconfdir@ 206 206 target_alias = @target_alias@ 207 top_build_prefix = @top_build_prefix@ 207 208 top_builddir = @top_builddir@ 208 209 top_srcdir = @top_srcdir@ 209 210 @USE_NLS_FALSE@SUBDIRS = -
man/pl/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/pl/Makefile.in shadow-4.1.2.2/man/pl/Makefile.in
old new 191 191 srcdir = @srcdir@ 192 192 sysconfdir = @sysconfdir@ 193 193 target_alias = @target_alias@ 194 top_build_prefix = @top_build_prefix@ 194 195 top_builddir = @top_builddir@ 195 196 top_srcdir = @top_srcdir@ 196 197 man_MANS = chage.1 chfn.1 chgpasswd.8 chpasswd.8 chsh.1 expiry.1 \ -
man/pt_BR/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/pt_BR/Makefile.in shadow-4.1.2.2/man/pt_BR/Makefile.in
old new 188 188 srcdir = @srcdir@ 189 189 sysconfdir = @sysconfdir@ 190 190 target_alias = @target_alias@ 191 top_build_prefix = @top_build_prefix@ 191 192 top_builddir = @top_builddir@ 192 193 top_srcdir = @top_srcdir@ 193 194 man_MANS = \ -
man/ru/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/ru/Makefile.in shadow-4.1.2.2/man/ru/Makefile.in
old new 192 192 srcdir = @srcdir@ 193 193 sysconfdir = @sysconfdir@ 194 194 target_alias = @target_alias@ 195 top_build_prefix = @top_build_prefix@ 195 196 top_builddir = @top_builddir@ 196 197 top_srcdir = @top_srcdir@ 197 198 man_MANS = $(man_nopam) chage.1 chfn.1 chgpasswd.8 chpasswd.8 chsh.1 \ -
man/sv/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/sv/Makefile.in shadow-4.1.2.2/man/sv/Makefile.in
old new 192 192 srcdir = @srcdir@ 193 193 sysconfdir = @sysconfdir@ 194 194 target_alias = @target_alias@ 195 top_build_prefix = @top_build_prefix@ 195 196 top_builddir = @top_builddir@ 196 197 top_srcdir = @top_srcdir@ 197 198 man_MANS = chage.1 chfn.1 chgpasswd.8 chpasswd.8 chsh.1 expiry.1 \ -
man/tr/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/tr/Makefile.in shadow-4.1.2.2/man/tr/Makefile.in
old new 188 188 srcdir = @srcdir@ 189 189 sysconfdir = @sysconfdir@ 190 190 target_alias = @target_alias@ 191 top_build_prefix = @top_build_prefix@ 191 192 top_builddir = @top_builddir@ 192 193 top_srcdir = @top_srcdir@ 193 194 man_MANS = \ -
man/zh_CN/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/zh_CN/Makefile.in shadow-4.1.2.2/man/zh_CN/Makefile.in
old new 190 190 srcdir = @srcdir@ 191 191 sysconfdir = @sysconfdir@ 192 192 target_alias = @target_alias@ 193 top_build_prefix = @top_build_prefix@ 193 194 top_builddir = @top_builddir@ 194 195 top_srcdir = @top_srcdir@ 195 196 man_MANS = \ -
man/zh_TW/Makefile.in
diff -Naur shadow-4.1.2.2.orig/man/zh_TW/Makefile.in shadow-4.1.2.2/man/zh_TW/Makefile.in
old new 190 190 srcdir = @srcdir@ 191 191 sysconfdir = @sysconfdir@ 192 192 target_alias = @target_alias@ 193 top_build_prefix = @top_build_prefix@ 193 194 top_builddir = @top_builddir@ 194 195 top_srcdir = @top_srcdir@ 195 196 man_MANS = \ -
shadow-4.1.2.2
diff -Naur shadow-4.1.2.2.orig/src/chage.c shadow-4.1.2.2/src/chage.c
old new 759 759 760 760 ruid = getuid (); 761 761 rgid = getgid (); 762 amroot = (ruid == 0);762 amroot = 1; /* (ruid == 0); */ 763 763 #ifdef WITH_SELINUX 764 764 if (amroot && (is_selinux_enabled () > 0)) { 765 765 amroot = (selinux_check_passwd_access (PASSWD__ROOTOK) == 0); -
shadow-4.1.2.2
diff -Naur shadow-4.1.2.2.orig/src/chfn.c shadow-4.1.2.2/src/chfn.c
old new 712 712 713 713 SYSLOG ((LOG_INFO, "changed user `%s' information", user)); 714 714 715 nscd_flush_cache ("passwd");715 // nscd_flush_cache ("passwd"); 716 716 717 717 #ifdef USE_PAM 718 718 pam_end (pamh, PAM_SUCCESS); -
src/chgpasswd.c
diff -Naur shadow-4.1.2.2.orig/src/chgpasswd.c shadow-4.1.2.2/src/chgpasswd.c
old new 487 487 488 488 close_files (); 489 489 490 nscd_flush_cache ("group");490 // nscd_flush_cache ("group"); 491 491 492 492 #ifdef USE_PAM 493 493 pam_end (pamh, PAM_SUCCESS); -
src/chpasswd.c
diff -Naur shadow-4.1.2.2.orig/src/chpasswd.c shadow-4.1.2.2/src/chpasswd.c
old new 472 472 473 473 close_files (); 474 474 475 nscd_flush_cache ("passwd");475 // nscd_flush_cache ("passwd"); 476 476 477 477 #ifdef USE_PAM 478 478 pam_end (pamh, PAM_SUCCESS); -
shadow-4.1.2.2
diff -Naur shadow-4.1.2.2.orig/src/chsh.c shadow-4.1.2.2/src/chsh.c
old new 55 55 #include "pam_defs.h" 56 56 #endif 57 57 #ifndef SHELLS_FILE 58 #define SHELLS_FILE "/etc/shells"58 #define SHELLS_FILE SYSCONFDIR"/shells" 59 59 #endif 60 60 /* 61 61 * Global variables … … 440 440 /* 441 441 * This command behaves different for root and non-root users. 442 442 */ 443 amroot = getuid () == 0;443 amroot = 1; /* getuid () == 0; */ 444 444 445 445 /* 446 446 * Get the program name. The program name is used as a prefix to … … 540 540 541 541 SYSLOG ((LOG_INFO, "changed user `%s' shell to `%s'", user, loginsh)); 542 542 543 nscd_flush_cache ("passwd");543 // nscd_flush_cache ("passwd"); 544 544 545 545 #ifdef USE_PAM 546 546 pam_end (pamh, PAM_SUCCESS); -
src/gpasswd.c
diff -Naur shadow-4.1.2.2.orig/src/gpasswd.c shadow-4.1.2.2/src/gpasswd.c
old new 81 81 /* The UID of the caller */ 82 82 static unsigned long bywho = -1; 83 83 /* Indicate if gpasswd was called by root */ 84 #define amroot (0 == bywho)84 #define amroot 1 /* (0 == bywho) */ 85 85 86 86 /* The number of retries for th user to provide and repeat a new password */ 87 87 #ifndef RETRIES … … 966 966 * output, etc. 967 967 */ 968 968 output: 969 /* 969 970 if (setuid (0) != 0) { 970 971 fputs (_("Cannot change ID to root.\n"), stderr); 971 972 SYSLOG ((LOG_ERR, "can't setuid(0)")); … … 976 977 closelog (); 977 978 fail_exit (1); 978 979 } 980 */ 979 981 pwd_init (); 980 982 981 983 open_files (); … … 988 990 989 991 close_files (); 990 992 991 nscd_flush_cache ("group");993 // nscd_flush_cache ("group"); 992 994 993 995 exit (E_SUCCESS); 994 996 } -
src/groupadd.c
diff -Naur shadow-4.1.2.2.orig/src/groupadd.c shadow-4.1.2.2/src/groupadd.c
old new 575 575 grp_update (); 576 576 close_files (); 577 577 578 nscd_flush_cache ("group");578 // nscd_flush_cache ("group"); 579 579 580 580 #ifdef USE_PAM 581 581 pam_end (pamh, PAM_SUCCESS); -
src/groupdel.c
diff -Naur shadow-4.1.2.2.orig/src/groupdel.c shadow-4.1.2.2/src/groupdel.c
old new 366 366 367 367 close_files (); 368 368 369 nscd_flush_cache ("group");369 // nscd_flush_cache ("group"); 370 370 371 371 #ifdef USE_PAM 372 372 if (retval == PAM_SUCCESS) -
src/groupmod.c
diff -Naur shadow-4.1.2.2.orig/src/groupmod.c shadow-4.1.2.2/src/groupmod.c
old new 694 694 695 695 close_files (); 696 696 697 nscd_flush_cache ("group");697 // nscd_flush_cache ("group"); 698 698 699 699 #ifdef USE_PAM 700 700 if (retval == PAM_SUCCESS) -
shadow-4.1.2.2
diff -Naur shadow-4.1.2.2.orig/src/grpck.c shadow-4.1.2.2/src/grpck.c
old new 777 777 /* Commit the change in the database if needed */ 778 778 close_files (changed); 779 779 780 nscd_flush_cache ("group");780 // nscd_flush_cache ("group"); 781 781 782 782 /* 783 783 * Tell the user what we did and exit. -
src/grpconv.c
diff -Naur shadow-4.1.2.2.orig/src/grpconv.c shadow-4.1.2.2/src/grpconv.c
old new 179 179 sgr_unlock (); 180 180 gr_unlock (); 181 181 182 nscd_flush_cache ("group");182 // nscd_flush_cache ("group"); 183 183 184 184 return 0; 185 185 } -
src/grpunconv.c
diff -Naur shadow-4.1.2.2.orig/src/grpunconv.c shadow-4.1.2.2/src/grpunconv.c
old new 142 142 sgr_unlock (); 143 143 gr_unlock (); 144 144 145 nscd_flush_cache ("group");145 // nscd_flush_cache ("group"); 146 146 147 147 return 0; 148 148 } -
src/login_nopam.c
diff -Naur shadow-4.1.2.2.orig/src/login_nopam.c shadow-4.1.2.2/src/login_nopam.c
old new 59 59 60 60 /* Path name of the access control file. */ 61 61 #ifndef TABLE 62 #define TABLE "/etc/login.access"62 #define TABLE SYSCONFDIR"/login.access" 63 63 #endif 64 64 65 65 /* Delimiters for fields and for lists of users, ttys or hosts. */ -
src/logoutd.c
diff -Naur shadow-4.1.2.2.orig/src/logoutd.c shadow-4.1.2.2/src/logoutd.c
old new 50 50 #endif 51 51 52 52 #ifndef HUP_MESG_FILE 53 #define HUP_MESG_FILE "/etc/logoutd.mesg"53 #define HUP_MESG_FILE SYSCONFDIR"/logoutd.mesg" 54 54 #endif 55 55 56 56 #if HAVE_UTMPX_H -
src/Makefile.am
diff -Naur shadow-4.1.2.2.orig/src/Makefile.am shadow-4.1.2.2/src/Makefile.am
old new 3 3 .indent.pro 4 4 5 5 ubindir = ${prefix}/bin 6 usbindir = ${prefix}/ sbin6 usbindir = ${prefix}/bin 7 7 suidperms = 4755 8 8 9 9 INCLUDES = \ … … 53 53 LDADD = $(INTLLIBS) \ 54 54 $(top_builddir)/libmisc/libmisc.a \ 55 55 $(top_builddir)/lib/libshadow.la 56 AM_CPPFLAGS = -D LOCALEDIR=\"$(datadir)/locale\"56 AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" -DLOCALEDIR=\"$(datadir)/locale\" -DSG=\"`echo sg | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`\" -DVIGR=\"`echo vigr | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`\" 57 57 58 58 chage_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX) 59 59 chfn_LDADD = $(LDADD) $(LIBPAM) $(LIBSELINUX) $(LIBCRYPT) $(LIBSKEY) $(LIBMD) … … 91 91 92 92 install-am: all-am 93 93 $(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 94 ln -sf newgrp $(DESTDIR)$(ubindir)/sg95 ln -sf vipw $(DESTDIR)$(usbindir)/vigr94 ln -sf `echo newgrp | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(ubindir)/`echo sg | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` 95 ln -sf `echo vipw | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(usbindir)/`echo vigr | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` 96 96 for i in $(suidbins); do \ 97 chmod -f $(suidperms) $(DESTDIR)$(bindir)/$$i; \97 chmod -f 4755 $(DESTDIR)$(bindir)/`echo $$i | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ 98 98 done 99 99 for i in $(suidubins); do \ 100 chmod -f $(suidperms) $(DESTDIR)$(ubindir)/$$i; \100 chmod -f 4755 $(DESTDIR)$(ubindir)/`echo $$i | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ 101 101 done -
src/Makefile.in
diff -Naur shadow-4.1.2.2.orig/src/Makefile.in shadow-4.1.2.2/src/Makefile.in
old new 371 371 srcdir = @srcdir@ 372 372 sysconfdir = @sysconfdir@ 373 373 target_alias = @target_alias@ 374 top_build_prefix = @top_build_prefix@ 374 375 top_builddir = @top_builddir@ 375 376 top_srcdir = @top_srcdir@ 376 377 EXTRA_DIST = \ 377 378 .indent.pro 378 379 379 380 ubindir = ${prefix}/bin 380 usbindir = ${prefix}/ sbin381 usbindir = ${prefix}/bin 381 382 suidperms = 4755 382 383 INCLUDES = \ 383 384 -I${top_srcdir}/lib \ … … 389 390 $(top_builddir)/libmisc/libmisc.a \ 390 391 $(top_builddir)/lib/libshadow.la 391 392 392 AM_CPPFLAGS = -D LOCALEDIR=\"$(datadir)/locale\"393 AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" -DLOCALEDIR=\"$(datadir)/locale\" -DSG=\"`echo sg | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`\" -DVIGR=\"`echo vigr | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`\" 393 394 chage_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX) 394 395 chfn_LDADD = $(LDADD) $(LIBPAM) $(LIBSELINUX) $(LIBCRYPT) $(LIBSKEY) $(LIBMD) 395 396 chgpasswd_LDADD = $(LDADD) $(LIBPAM) $(LIBSELINUX) $(LIBCRYPT) … … 931 932 932 933 install-am: all-am 933 934 $(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 934 ln -sf newgrp $(DESTDIR)$(ubindir)/sg935 ln -sf vipw $(DESTDIR)$(usbindir)/vigr935 ln -sf `echo newgrp | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(ubindir)/`echo sg | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` 936 ln -sf `echo vipw | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(usbindir)/`echo vigr | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` 936 937 for i in $(suidbins); do \ 937 chmod -f $(suidperms) $(DESTDIR)$(bindir)/$$i; \938 chmod -f 4755 $(DESTDIR)$(bindir)/`echo $$i | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ 938 939 done 939 940 for i in $(suidubins); do \ 940 chmod -f $(suidperms) $(DESTDIR)$(ubindir)/$$i; \941 chmod -f 4755 $(DESTDIR)$(ubindir)/`echo $$i | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ 941 942 done 942 943 # Tell versions [3.59,3.63) of GNU make to not export all variables. 943 944 # Otherwise a system limit (for SysV at least) may be exceeded. -
shadow-4.1.2.2
diff -Naur shadow-4.1.2.2.orig/src/newgrp.c shadow-4.1.2.2/src/newgrp.c
old new 270 270 if (child < 0) { 271 271 /* error in fork() */ 272 272 fprintf (stderr, _("%s: failure forking: %s\n"), 273 is_newgrp ? "newgrp" : "sg", strerror (errno));273 is_newgrp ? "newgrp" : SG, strerror (errno)); 274 274 #ifdef WITH_AUDIT 275 275 if (group) { 276 276 snprintf (audit_buf, sizeof(audit_buf), … … 387 387 */ 388 388 Prog = Basename (argv[0]); 389 389 is_newgrp = (strcmp (Prog, "newgrp") == 0); 390 OPENLOG (is_newgrp ? "newgrp" : "sg");390 OPENLOG (is_newgrp ? "newgrp" : SG); 391 391 gid = getgid (); 392 392 argc--; 393 393 argv++; -
src/newusers.c
diff -Naur shadow-4.1.2.2.orig/src/newusers.c shadow-4.1.2.2/src/newusers.c
old new 865 865 866 866 close_files (); 867 867 868 nscd_flush_cache ("passwd");869 nscd_flush_cache ("group");868 // nscd_flush_cache ("passwd"); 869 // nscd_flush_cache ("group"); 870 870 871 871 #ifdef USE_PAM 872 872 pam_end (pamh, PAM_SUCCESS); -
shadow-4.1.2.2
diff -Naur shadow-4.1.2.2.orig/src/passwd.c shadow-4.1.2.2/src/passwd.c
old new 717 717 * The program behaves differently when executed by root than when 718 718 * executed by a normal user. 719 719 */ 720 amroot = (getuid () == 0);720 amroot = 1; /* (getuid () == 0); */ 721 721 722 722 /* 723 723 * Get the program name. The program name is used as a prefix to … … 998 998 exit (E_SUCCESS); 999 999 } 1000 1000 #endif /* USE_PAM */ 1001 /* 1001 1002 if (setuid (0)) { 1002 1003 fputs (_("Cannot change ID to root.\n"), stderr); 1003 1004 SYSLOG ((LOG_ERR, "can't setuid(0)")); 1004 1005 closelog (); 1005 1006 exit (E_NOPERM); 1006 1007 } 1008 */ 1007 1009 if (spw_file_present ()) 1008 1010 update_shadow (); 1009 1011 else 1010 1012 update_noshadow (); 1011 1013 1012 nscd_flush_cache ("passwd");1013 nscd_flush_cache ("group");1014 // nscd_flush_cache ("passwd"); 1015 // nscd_flush_cache ("group"); 1014 1016 1015 1017 SYSLOG ((LOG_INFO, "password for `%s' changed by `%s'", name, myname)); 1016 1018 closelog (); -
shadow-4.1.2.2
diff -Naur shadow-4.1.2.2.orig/src/pwck.c shadow-4.1.2.2/src/pwck.c
old new 636 636 637 637 close_files (changed); 638 638 639 nscd_flush_cache ("passwd");639 // nscd_flush_cache ("passwd"); 640 640 641 641 /* 642 642 * Tell the user what we did and exit. -
shadow-4.1.2.2
diff -Naur shadow-4.1.2.2.orig/src/pwconv.c shadow-4.1.2.2/src/pwconv.c
old new 208 208 spw_unlock (); 209 209 pw_unlock (); 210 210 211 nscd_flush_cache ("passwd");211 // nscd_flush_cache ("passwd"); 212 212 213 213 exit (E_SUCCESS); 214 214 } -
src/pwunconv.c
diff -Naur shadow-4.1.2.2.orig/src/pwunconv.c shadow-4.1.2.2/src/pwunconv.c
old new 149 149 spw_unlock (); 150 150 pw_unlock (); 151 151 152 nscd_flush_cache ("passwd");152 // nscd_flush_cache ("passwd"); 153 153 154 154 return 0; 155 155 } -
shadow-4.1.2.2
diff -Naur shadow-4.1.2.2.orig/src/suauth.c shadow-4.1.2.2/src/suauth.c
old new 40 40 #include "prototypes.h" 41 41 42 42 #ifndef SUAUTHFILE 43 #define SUAUTHFILE "/etc/suauth"43 #define SUAUTHFILE SYSCONFDIR"/suauth" 44 44 #endif 45 45 46 46 #define NOACTION 0 -
src/useradd.c
diff -Naur shadow-4.1.2.2.orig/src/useradd.c shadow-4.1.2.2/src/useradd.c
old new 64 64 #include "shadowio.h" 65 65 66 66 #ifndef SKEL_DIR 67 #define SKEL_DIR "/etc/skel"67 #define SKEL_DIR SYSCONFDIR"/skel" 68 68 #endif 69 69 #ifndef USER_DEFAULTS_FILE 70 #define USER_DEFAULTS_FILE "/etc/default/useradd"71 #define NEW_USER_FILE "/etc/default/nuaddXXXXXX"70 #define USER_DEFAULTS_FILE SYSCONFDIR"/default/useradd" 71 #define NEW_USER_FILE SYSCONFDIR"/default/nuaddXXXXXX" 72 72 #endif 73 73 /* 74 74 * Needed for MkLinux DR1/2/2.1 - J. … … 1751 1751 1752 1752 close_files (); 1753 1753 1754 nscd_flush_cache ("passwd");1755 nscd_flush_cache ("group");1754 // nscd_flush_cache ("passwd"); 1755 // nscd_flush_cache ("group"); 1756 1756 1757 1757 #ifdef USE_PAM 1758 1758 if (retval == PAM_SUCCESS) -
src/userdel.c
diff -Naur shadow-4.1.2.2.orig/src/userdel.c shadow-4.1.2.2/src/userdel.c
old new 818 818 user_cancel (user_name); 819 819 close_files (); 820 820 821 nscd_flush_cache ("passwd");822 nscd_flush_cache ("group");821 // nscd_flush_cache ("passwd"); 822 // nscd_flush_cache ("group"); 823 823 824 824 #ifdef USE_PAM 825 825 if (retval == PAM_SUCCESS) -
src/usermod.c
diff -Naur shadow-4.1.2.2.orig/src/usermod.c shadow-4.1.2.2/src/usermod.c
old new 1531 1531 grp_update (); 1532 1532 close_files (); 1533 1533 1534 nscd_flush_cache ("passwd");1535 nscd_flush_cache ("group");1534 // nscd_flush_cache ("passwd"); 1535 // nscd_flush_cache ("group"); 1536 1536 1537 1537 if (mflg) 1538 1538 move_home (); -
shadow-4.1.2.2
diff -Naur shadow-4.1.2.2.orig/src/vipw.c shadow-4.1.2.2/src/vipw.c
old new 257 257 textdomain (PACKAGE); 258 258 259 259 progname = ((a = strrchr (*argv, '/')) ? a + 1 : *argv); 260 do_vipw = (strcmp (progname, "vigr") != 0);260 do_vipw = (strcmp (progname, VIGR) != 0); 261 261 262 262 { 263 263 /* … … 334 334 #endif 335 335 } 336 336 337 nscd_flush_cache ("passwd");338 nscd_flush_cache ("group");337 // nscd_flush_cache ("passwd"); 338 // nscd_flush_cache ("group"); 339 339 340 340 exit (E_SUCCESS); 341 341 }
Note:
See TracBrowser
for help on using the repository browser.