Commit Graph

51 Commits

Author SHA1 Message Date
thorpej
af7b5d4d71 Set close-on-exec on all opened files. Partially from OpenBSD. 1998-12-19 02:23:46 +00:00
thorpej
fef2d92ecd Better error message if opening the temp file fails. 1998-12-19 02:13:43 +00:00
kim
1e454491c8 We need to initialize the "save" member in the list for GECOS fields.
If the user deletes a field while editing (as an easy way of making
that field empty) then "save" for that field will not get initialized
before referencing it when constructing the new GECOS field.
1998-08-10 23:21:05 +00:00
mycroft
a5b2c458ca const poisoning. 1998-07-26 21:25:16 +00:00
mycroft
decd62c2bf const poisoning. 1998-07-26 15:13:14 +00:00
mycroft
0db548a927 const poisoning. 1998-07-26 14:57:56 +00:00
mrg
c9987f1692 KNF 1998-07-05 14:26:06 +00:00
fair
dc026e0515 Change occurrences of "UNIX" to .Ux or .At as appropriate. 1998-04-28 06:00:51 +00:00
mikel
80f08d107b capitalize title of Morris&Thompson paper, use .Ev for EDITOR 1998-03-18 06:05:10 +00:00
perry
34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
christos
91fe434141 Use strftime and strptime. 1998-02-04 15:21:52 +00:00
mrg
9f84449ae5 add missing .Nm sections. 1997-11-11 14:39:59 +00:00
lukem
8ba07ab0b3 use CPPFLAGS instead of CFLAGS 1997-10-24 09:00:17 +00:00
mrg
66f7b9fd72 fix compile warnings on the alpha. 1997-10-19 14:05:56 +00:00
lukem
ad23fe25bd WARNSify, fix .Nm usage, bzero -> memset 1997-10-18 12:49:10 +00:00
lukem
5645d77b1c WARNSify, fix .Nm usage, bzero -> memset 1997-10-18 12:48:40 +00:00
mikel
0a3628b2c3 initialize variables for gcc -Wall (marked XXX)
compare getopt() result to -1, not EOF
1997-07-25 06:40:32 +00:00
mikel
2aa6b3b7a4 make comparison to NULL explicit (gcc -Wall) 1997-07-25 06:38:02 +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
mikel
2a1157114b add prototypes for check_yppasswdd() and pw_yp() 1997-07-25 06:36:02 +00:00
phil
6907a00e10 Changes to close PR3807. (Different than in PR.)
-- don't lock passwd until data is collected.
-- save a copy of original pw data for pw_copy checking
-- Try several times to lock passwd
1997-07-24 08:53:06 +00:00
mrg
64d6e24a6b find "namespace.h" ... 1997-07-22 11:38:33 +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
gwr
10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr
012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
mouse
650ee578da alternate -> alternative, per PR 2643 1997-03-08 14:13:54 +00:00
mrg
cc03262905 remove dangerous sprintf and strcpy calls. 1997-02-11 08:26:27 +00:00
tls
3514c40606 add note about Kerberos to manual page 1997-01-09 12:09:26 +00:00
cjs
938125b32e PR 3081: segfault due to reversed test.
Fix from Todd Kover <kovert@omniscient.com>.
1997-01-05 10:06:40 +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
jtc
370990b210 Updated to use new password file functions in libutil.
From Greg Hudson <ghudson@MIT.EDU>.
1996-05-15 21:50:39 +00:00
jtc
665fc8b7e7 Fix formatting as suggested in PR #1452 1995-09-14 06:10:53 +00:00
phil
72065007ac Improvements to YP support from Jason Downs. 1995-07-28 07:01:32 +00:00
jtc
907b803d29 Fix formatting; PR #1194 1995-07-07 22:35:40 +00:00
jtc
b1f21ab226 Remove unnecessary sys/signal.h header 1995-06-26 23:43:06 +00:00
glass
7659edad1f merged with 4.4Lite 1995-03-26 04:55:22 +00:00
glass
bc9ccaef17 Import from 4.4Lite 1995-03-26 04:19:16 +00:00
mycroft
3dbc1e9443 Patch from Giles Lean to make compilation flags more consistent. 1995-01-07 23:07:03 +00:00
deraadt
af080bda6b tabs 1994-08-17 19:54:39 +00:00
deraadt
16ed82ec47 fix bug 417 1994-08-17 19:54:34 +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
cgd
a6b0e27a3a get the expire and change dates right if they're after 1/1/2000 1994-01-03 08:21:14 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft
dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft
690cae8181 Add RCS indentifiers. 1993-07-31 15:17:49 +00:00
brezak
96267d0e22 Add YP support. 1993-06-11 00:34:38 +00:00
mycroft
1b67cec37d Fix various bugs in man pages (from 386BSD patch 130). 1993-04-22 03:27:28 +00:00