Commit Graph

21 Commits

Author SHA1 Message Date
xtraeme 971b39df9c Kill __P(), use ANSI function declarations. 2005-02-17 16:53:45 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun 5f2d0b666f error handling on strdup failure 2002-11-16 15:59:26 +00:00
phil 18ee5233a8 getpwuid() and getpwnam() both support YP maps, insecure and secure.
Remove local ypgetpw{uid,nam} which don't support secure maps.
(Using chpass/chfn with secure maps and these local functions turns off
users by putting * in password entry.)
2000-10-27 16:16:03 +00:00
is 135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
itojun 58b3b7a40a plug warn() call with variable only, just in case - honor behavior of warn(NULL) 2000-10-04 08:38:09 +00:00
simonb 299578ebd5 Spell "privilege" correctly (correct spelling from Jonathan Stone). 1999-08-16 02:59:22 +00:00
mycroft a5b2c458ca const poisoning. 1998-07-26 21:25:16 +00:00
mrg c9987f1692 KNF 1998-07-05 14:26:06 +00:00
lukem 5645d77b1c WARNSify, fix .Nm usage, bzero -> memset 1997-10-18 12:48:40 +00:00
mikel f89e3ed737 include <err.h> and <stdlib.h> for prototypes
give pw_yp() an explicit type
1997-07-25 06:37:27 +00:00
lukem c3d0010341 remove use of register. 1997-05-21 02:20:15 +00:00
lukem 9f26a55f84 * free up returned data if yp_master() or yp_match() failed
* simplify two case 'switch'es into 'if' statements
1997-05-21 02:19:06 +00:00
mrg cc03262905 remove dangerous sprintf and strcpy calls. 1997-02-11 08:26:27 +00:00
thorpej 97fdc79a5e Fix a semantic problem reported by Chuck Cranor:
If a user wishes to change a password on a system running YP, and
the master server is not running rpc.yppasswdd, chpass(1) would fail,
even if the user had a local entry.  Fix this by checking for local
entry if master is not running rpc.yppasswd iff we defaulted to using
YP (not invoked with "-y").

XXX Unlike the similar change to passwd(1), this one duplicates some
XXX code (makes an attempt to contact rpc.yppasswdd early).  This is
XXX a side-effect of the structure of this program.  chpass(1) could
XXX use a re-write.
1996-11-26 23:38:42 +00:00
thorpej 51956e9393 Slight semantics change: ALWAYS use YP if the system is bound to a
YP server.  This is required if the passwd database is to stay in sync
if this program is run on the YP server.  Note, local passwd database
operations can still be performed by passing the -l flag.
1996-08-09 09:22:11 +00:00
glass 7659edad1f merged with 4.4Lite 1995-03-26 04:55:22 +00:00
deraadt 61ee562180 fix same bug as in passwd 1994-08-17 19:54:23 +00:00
deraadt 42a8cb5a34 knf & small bug fix 1994-06-29 21:40:21 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
brezak 96267d0e22 Add YP support. 1993-06-11 00:34:38 +00:00