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
..
1995-07-31 10:10:02 +00:00
1994-09-23 00:37:55 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-02-03 22:09:56 +00:00
1995-02-03 21:59:45 +00:00
1995-06-20 18:31:16 +00:00
1994-11-13 20:47:44 +00:00
1995-05-30 05:51:47 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-09-08 19:46:57 +00:00
1995-05-30 05:51:47 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-09-23 00:37:55 +00:00
1994-09-23 00:37:55 +00:00
1995-04-13 18:04:11 +00:00
1995-04-13 18:04:11 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-12-12 01:15:01 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1994-05-27 05:00:24 +00:00
1995-03-24 16:33:44 +00:00
1995-05-01 08:53:21 +00:00
1995-05-01 08:53:21 +00:00
1995-05-30 05:51:47 +00:00
1994-05-24 09:57:34 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1994-09-23 20:22:01 +00:00
1994-09-24 00:10:13 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1995-03-09 17:45:23 +00:00
1995-06-20 18:31:16 +00:00
1994-05-27 05:00:24 +00:00
1994-12-18 14:06:39 +00:00
1994-08-08 00:40:24 +00:00
1994-05-27 05:00:24 +00:00
1994-09-20 22:02:20 +00:00
1995-10-06 21:29:01 +00:00
1994-05-27 05:00:24 +00:00
1995-02-17 19:45:21 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-09-02 04:08:55 +00:00
1994-08-10 06:27:35 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-09-20 22:02:20 +00:00
1995-10-11 21:35:08 +00:00
1994-05-27 05:00:24 +00:00
1995-06-20 18:31:16 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1994-09-25 01:38:30 +00:00
1995-05-30 05:51:47 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-09-23 00:37:55 +00:00
1994-09-23 00:37:55 +00:00
1994-05-27 05:00:24 +00:00
1994-09-23 00:37:55 +00:00
1995-05-30 05:51:47 +00:00
1994-05-27 05:00:24 +00:00
1994-09-23 00:37:55 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1994-09-23 00:37:55 +00:00
1994-09-19 22:04:28 +00:00
1995-04-21 15:23:27 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-06-20 18:31:16 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 03:57:47 +00:00
1994-05-26 05:23:31 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-12-25 15:33:39 +00:00
1994-09-23 00:37:55 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1994-09-23 00:37:55 +00:00
1994-05-27 05:00:24 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-08-08 00:40:24 +00:00
1994-09-24 02:59:15 +00:00
1994-09-24 02:59:15 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-04-09 04:59:40 +00:00
1995-05-30 05:51:47 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-09-13 14:52:45 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-07-16 09:41:03 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-09-23 00:37:55 +00:00
1994-09-24 02:59:15 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1994-10-18 03:42:18 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-10-05 00:11:15 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1995-03-29 19:28:35 +00:00
1995-02-24 01:02:59 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-08-05 20:25:24 +00:00
1994-05-27 05:00:24 +00:00
1995-09-22 17:01:28 +00:00
1995-05-30 05:51:47 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1994-05-27 05:00:24 +00:00
1995-07-31 10:10:02 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00