Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Preserve errno across calls to open the password database(s), so | 2011-09-05 | 1 | -2/+5 | |
| | | | | | | | that errno isn't changed when a normal user (who can't open spwd.db) does a lookup. Problem pointed out by Tim van der Molen (tbvdm at xs4all.nl) | ||||
* | remove unused variable | 2009-11-21 | 1 | -2/+1 | |
| | | | | ok deraadt@ | ||||
* | simplify the code looking for + in the password database, after analysis | 2009-11-12 | 1 | -5/+4 | |
| | | | | of a false positive made by parfait; ok millert | ||||
* | Take advantage of the surprise libc bump to bring in | 2009-06-03 | 1 | -59/+2 | |
| | | | | | | | | YP group(5) exclusion, i.e. support -groupname:*:: in /etc/group. Such groups will be excluded from later +:*::, in just the same was as it is already done for passwd(5). I have been running this since the autumn of 2008. Discussed with several (including deraadt@, millert@, jmc@). | ||||
* | getgrouplist: If YP is #defined and enabled in /etc/group(5) and /etc/netid(5) | 2009-03-27 | 1 | -11/+13 | |
| | | | | | | | | | | | | | | contains a matching entry, use that and refrain from accessing YP. getpwnam/getpwuid: If YP is #defined and /etc/master.passwd(5) contains a matching entry before the first YP entry, use that and stay away from YP. Taken together, this allows a solution to the following problem pointed out by deraadt@: When YP was configured but temporarily unavailable, even root login would block, hindering you when trying to do repairs. To avoid this, you can now provide a static entry for root in /etc/netid. Using suggestions from miod@ otto@ blambert@ jmc@. "commit" deraadt@, "cool" ajacoutot@, "looks fine" jmc@. | ||||
* | Avoid an occasional double free in getpwent() which corrupted memory. It | 2008-07-23 | 1 | -6/+2 | |
| | | | | | | happened only in the case of a + record indicating to use YP, but with ypbind not actually running. Problem found by pyr; solution found with millert ok millert pyr | ||||
* | oops, fix getpwent() use of wrong buffers | 2008-07-06 | 1 | -3/+4 | |
| | | | | found by alexander.schrijver | ||||
* | Add _PW_BUF_LEN define and use it instead of hard-coding 1024 for | 2008-06-25 | 1 | -6/+6 | |
| | | | | the buffer size. OK deraadt@ | ||||
* | implement getpwnam_r() and getpwuid_r() -- very nearly a rewrite of the | 2008-06-24 | 1 | -469/+403 | |
| | | | | entire file. much help from kurt, and tested by many | ||||
* | zap remaining rcsid. | 2005-08-08 | 1 | -4/+1 | |
| | | | | | | Kill old files that are no longer compiled. okay theo | ||||
* | deregister (and deauto!). ok millert@ marco@ | 2005-03-25 | 1 | -4/+4 | |
| | |||||
* | ansify function definitions and zap some `register' | 2004-05-18 | 1 | -22/+15 | |
| | | | | ok millert@ | ||||
* | protos | 2003-06-25 | 1 | -1/+2 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -6/+2 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | add missing enumeration case to select to kill gcc warning | 2003-05-01 | 1 | -1/+4 | |
| | | | | millert@ ok | ||||
* | Add a "shadow" group and make the shadow passwd db readable by that | 2002-11-21 | 1 | -6/+4 | |
| | | | | | | | | | | | | | | | group. This changes getpw* to always try the shadow db first and then fall back to the db w/o password hashes. In the future, /usr/libexec/auth/login_passwd (and others) will be setgid shadow instead of setuid root. OK deraadt@ If you track -current you should do the following: o add group shadow to /etc/group o chgrp shadow /etc/spwd.db o chmod 640 /etc/spwd.db o rebuild and install src/usr.sbin/pwd_mkdb You do not need to rebuild libc yet, but it would't hurt to do so. | ||||
* | KNF | 2002-07-06 | 1 | -20/+20 | |
| | |||||
* | cope better if realloc fails; better fix than cloder@acm.org | 2002-07-06 | 1 | -1/+2 | |
| | |||||
* | try to use strlcpy and snprintf more; ok various | 2002-05-24 | 1 | -2/+2 | |
| | |||||
* | We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft. | 2002-02-19 | 1 | -6/+1 | |
| | |||||
* | Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | 2002-02-16 | 1 | -9/+9 | |
| | |||||
* | put another YP-only piece inside the ifdef | 2001-07-10 | 1 | -1/+3 | |
| | |||||
* | Avoid theoretical potential buffer overflow | 2001-02-13 | 1 | -2/+2 | |
| | |||||
* | move utmp to large format, usernames to 32 chars; downsj | 2001-01-31 | 1 | -9/+8 | |
| | |||||
* | well if you cannot do a libc commit properly a week before 2.7 tree lock, surely it can wait till after 2.7 | 2000-04-25 | 1 | -132/+10 | |
| | |||||
* | getpw*_r() | 2000-04-25 | 1 | -10/+132 | |
| | |||||
* | redo master.passwd.byname check if either the uid or euid changes, this was | 1999-09-15 | 1 | -4/+18 | |
| | | | | a case of bad caching; peter and I | ||||
* | indent | 1999-09-14 | 1 | -114/+114 | |
| | |||||
* | Use strtol() and strtoul() instead of atoi(). This allows us to catch | 1999-09-03 | 1 | -6/+21 | |
| | | | | errors reasonably and deal correctly with unsigned quantities. | ||||
* | realloc repair | 1998-08-14 | 1 | -3/+10 | |
| | |||||
* | avoid calling __has_yppw() everytime through getpwent(), by caching the YP status along with the open file status | 1998-07-14 | 1 | -5/+8 | |
| | |||||
* | handle long usernames more carefully | 1997-12-18 | 1 | -5/+9 | |
| | |||||
* | tabify | 1997-07-23 | 1 | -2/+2 | |
| | |||||
* | constrain length of db lookups better; reported by adam@math.tau.ac.il | 1997-04-18 | 1 | -3/+3 | |
| | |||||
* | buf oflow; bitblt | 1997-04-13 | 1 | -3/+7 | |
| | |||||
* | kill __yp_token, other clean ups. | 1996-10-16 | 1 | -19/+21 | |
| | |||||
* | * optimal exclusions support -- don't waste memory with DB. assumes | 1996-10-15 | 1 | -87/+144 | |
| | | | | | | | | exclusions lists are typically small. * move YP_OVERRIDE_PASSWD to a static var. needs some way for the system to set this. * clean up variable names and some code. * invisibly support FreeBSD ypserv running in "secure" mode. | ||||
* | uid_t is now a u_int32_t, treat it as such. | 1996-09-16 | 1 | -4/+5 | |
| | |||||
* | Add a couple of syscalls; bring more prototypes into scope | 1996-09-15 | 1 | -1/+2 | |
| | |||||
* | Remove dead code | 1996-09-15 | 1 | -6/+1 | |
| | | | | | | Remove unused variables Silence some warnings lint(1) is your friend | ||||
* | Fix RCS ids | 1996-08-19 | 1 | -7/+1 | |
| | | | | Make sure everything uses {SYS,}LIBC_SCCS properly | ||||
* | yp_prot.h lies -> use yp.h (from yp.x) instead, change lots of structure | 1996-04-24 | 1 | -1/+1 | |
| | | | | | | | | | accesses to match. change xdr_domainname() and some other functions to take "char **" instead of "char *", as rpcgen intended -- helps programs linking against rpcgen output of yp.x. yp_all() should not free it's return value. split xdryp.c and yplib.c into ~20 files so binaries like "csh" need not link in functions like yp_maplist(). NIS+'s YP emulation code lacks YPPROC_ORDER... attempt to deal nicely. | ||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+942 | |