cgd
d2d8d25fe6
progname not used here, so don't extern it
2001-02-13 00:11:45 +00:00
christos
32d9714048
fix redundant decls
2001-02-05 01:37:33 +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
itojun
bbef2fbaac
errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd
2000-07-07 15:10:32 +00:00
ad
470c73e831
Xref passwd.conf.
2000-07-06 11:26:14 +00:00
simonb
299578ebd5
Spell "privilege" correctly (correct spelling from Jonathan Stone).
1999-08-16 02:59:22 +00:00
mjl
eb4489ce10
Fix for PR 5507 and 6686, using mostly patch by Rick Byers.
1999-02-08 22:21:44 +00:00
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