freebsd-skq/lib
Bill Paul 3948edc24c Another tweak/speedup pass:
- Fix buffer overflow problem once and for all: do away with the buffer
  copies to 'user' prior to calling _scancaches() and just pass a pointer
  to the buffer returned by yp_match()/yp_first()/yp_next()/whatever.
  (We turn the first ':' to a NUL first so strcmp() works, then change it
  back later. Submitted by Bill Fenner <fenner@parc.xerox.com> and
  tweaked slightly by me.

- Give _pw_breakout_yp() the 'more elegant solution' I promised way back when.
  Eliminate several copies to static buffers and replace them with just
  one copy. (The buffer returned by the NIS functions is at most
  YPMAXRECORD bytes long, so we should only need one static buffer of
  the same length (plus 2 for paranoia's sake).)

- Also in _pw_breakout_yp(): always set pw.pw_passwd to the username
  obtained via NIS regardless of what pw_fields says: usernames cannot
  be overridden so we have no choice but to use the name returned by
  NIS.

- _Again_ in _pw_breakout_yp(): before doing anything else, check that
  the first character of the NIS-returned buffer is not a '+' or '-'.
  If it is, drop the entry. (#define EXTRA_PARANOIA 1 :)

- Probe for the master.passwd.* maps once during __initdb() instead
  of doing it each time _getyppass() or _nextyppass() is called.

- Don't copy the NIS data buffers to static memory in _getyppass()
  and _nextyppass(): this is done in _pw_breakout_yp() now.

- Test against phkmalloc and phkmalloc/2 (TNG!) to make sure we're
  free()ing the yp buffers sanely.

- Put _havemaster(), _getyppass() and nextyppass() prototypes under
  #ifdef YP. (Somehow they ended up on the wrong side of the #endif.)

- Remove unused variable ___yp_only.
1995-10-11 21:35:08 +00:00
..
csu/i386 Fixup the "ld.so failed" message for the case when ld.so finds undefined 1995-09-27 23:13:33 +00:00
libc Another tweak/speedup pass: 1995-10-11 21:35:08 +00:00
libcom_err Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libcompat Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libcrypt Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libcurses Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libdisk Brought in changes from rev 1.14.2.1 into main branch. 1995-08-26 04:57:03 +00:00
libedit Change my parse fix from 'return argc' to 'return 0'. 1995-08-30 17:59:59 +00:00
libf2c Update to the 1995/09/20 version. Previous version was 1993/12/17. 1995-09-28 20:49:15 +00:00
libF77 Update to the 1995/09/20 version. Previous version was 1993/12/17. 1995-09-28 20:49:15 +00:00
libforms Removed libdialog. 1995-09-16 16:25:25 +00:00
libftp Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libI77 Update to the 1995/09/20 version. Previous version was 1993/12/17. 1995-09-28 20:49:15 +00:00
libkvm 41 headers must be implicitly included and one more (<sys/param.h>) must 1995-06-25 03:35:49 +00:00
libm Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libmd Back out that last change; we don't build this shared. 1995-09-06 14:34:50 +00:00
libmytinfo Install source files with the -c flag, not with the optional flag ${COPY}. 1995-08-06 12:37:41 +00:00
libncurses Install source files with the -c flag, not with the optional flag ${COPY}. 1995-08-06 12:37:41 +00:00
libpam/modules Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
libpcap Install source files with the -c flag, not with the optional flag ${COPY}. 1995-08-06 12:37:41 +00:00
libresolv BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
librpc Make up for the fact that rpc headers are now installed from include. 1994-08-05 01:59:40 +00:00
librpcsvc If we are going to set the OBJS target, don't add to the old target. This 1995-03-04 17:39:24 +00:00
libscsi Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libskey Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libss Install non-source files with the optional flag ${COPY}, not with the flag -c. 1995-08-06 12:41:07 +00:00
libtelnet Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
libterm Correct the man page extent. 1994-08-08 19:26:23 +00:00
libtermcap Change install' to ${INSTALL}' so that default install flags can be 1995-08-06 12:24:38 +00:00
libutil Small NIS tweak: frob pw_error() a little so that it can say either 1995-08-13 16:05:06 +00:00
liby BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
msun Compress manual pages (if desired) in the obj directory rather 1995-10-02 20:02:05 +00:00
ncurses/ncurses Install source files with the -c flag, not with the optional flag ${COPY}. 1995-08-06 12:37:41 +00:00
rpcsvc Makefile to build librpcsvc. (All sources automatically generated.) 1994-08-07 23:21:08 +00:00
Makefile Build secure libcrypt if available and allowed 1995-09-29 19:56:05 +00:00
Makefile.inc From 1.1.5: define default shared library versions. For 2.0, use version 1994-08-04 22:44:00 +00:00