home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slacksrce / d / libc / libc-4.6 / libc-4 / libc-linux / shadow / libc.diffs next >
Encoding:
Text File  |  1993-11-26  |  1.8 KB  |  76 lines

  1. diff -rc libc-linux-4.4.4/grp/Makefile libc-linux/grp/Makefile
  2. *** libc-linux-4.4.4/grp/Makefile    Fri Aug 27 19:27:18 1993
  3. --- libc-linux/grp/Makefile    Sun Nov 21 18:42:52 1993
  4. ***************
  5. *** 21,27 ****
  6.   
  7.   DIRS:=
  8.   SRCS= fgetgrent.c getgrent.c getgrgid.c getgrnam.c grpopen.c \
  9. !     grpread.c initgroups.c
  10.   SMS= $(SRCS:.c=.s)
  11.   OBJS= $(SRCS:.c=.o)
  12.   
  13. --- 21,27 ----
  14.   
  15.   DIRS:=
  16.   SRCS= fgetgrent.c getgrent.c getgrgid.c getgrnam.c grpopen.c \
  17. !     grpread.c initgroups.c gshadow.c
  18.   SMS= $(SRCS:.c=.s)
  19.   OBJS= $(SRCS:.c=.o)
  20.   
  21. diff -rc libc-linux-4.4.4/pwd/Makefile libc-linux/pwd/Makefile
  22. *** libc-linux-4.4.4/pwd/Makefile    Mon Aug 23 22:20:48 1993
  23. --- libc-linux/pwd/Makefile    Sun Nov 21 18:41:56 1993
  24. ***************
  25. *** 20,26 ****
  26.   
  27.   DIRS:=
  28.   SRCS  = fgetpwent.c getpw.c getpwent.c getpwnam.c getpwuid.c \
  29. !     putpwent.c pwdopen.c pwdread.c
  30.   ASMS= $(SRCS:.c=.s)
  31.   OBJS= $(SRCS:.c=.o)
  32.   
  33. --- 20,26 ----
  34.   
  35.   DIRS:=
  36.   SRCS  = fgetpwent.c getpw.c getpwent.c getpwnam.c getpwuid.c \
  37. !     putpwent.c pwdopen.c pwdread.c shadow.c
  38.   ASMS= $(SRCS:.c=.s)
  39.   OBJS= $(SRCS:.c=.o)
  40.   
  41. diff -rc libc-linux-4.4.4/pwd/pwdread.c libc-linux/pwd/pwdread.c
  42. *** libc-linux-4.4.4/pwd/pwdread.c    Sun Jul 25 16:18:38 1993
  43. --- libc-linux/pwd/pwdread.c    Sun Nov 21 18:57:30 1993
  44. ***************
  45. *** 26,31 ****
  46. --- 26,36 ----
  47.   #include <string.h>
  48.   #include <pwd.h>
  49.   #include <sys/types.h>
  50. + #ifndef NO_SHADOW
  51. + #include "shadow.h"
  52. + #endif
  53.   #ifdef YP
  54.   #include <rpc/rpc.h>
  55.   #include <rpcsvc/yp_prot.h>
  56. ***************
  57. *** 278,283 ****
  58. --- 283,297 ----
  59.       return NULL;
  60.     *end = '\0';
  61.     info->p.pw_passwd = start;
  62. + #ifndef NO_SHADOW
  63. +   {
  64. +     struct spwd *spw = getspnam (info->p.pw_name);
  65. +     if (spw)
  66. +       info->p.pw_passwd = spw->sp_pwdp;
  67. +   }
  68. + #endif
  69.   
  70.     info->p.pw_uid = (uid_t) strtol (end + 1, &end, 10);
  71.     if (*end != ':')
  72.