Ed Schouten
01cc221b4c
Mute some warnings on uninitialized variables.
...
The code does the right thing, but the compiler is unable to figure it
out. All paths that use that variable use the same invariant.
2010-01-02 10:14:35 +00:00
Xin LI
821df508e8
Revert most part of 200420 as requested, as more review and polish is
...
needed.
2009-12-13 03:14:06 +00:00
Xin LI
6f2d322192
Remove unneeded header includes from usr.bin/ except contributed code.
...
Tested with: make universe
2009-12-11 23:35:38 +00:00
Ruslan Ermilov
b328ef0eba
Markup nits.
2007-11-07 07:59:38 +00:00
Brian Somers
b29cf88e96
Fix a typo
2007-04-03 19:14:39 +00:00
Ruslan Ermilov
e1fe3dba5c
Reimplementation of world/kernel build options. For details, see:
...
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html
The src.conf(5) manpage is to follow in a few days.
Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
2006-03-17 18:54:44 +00:00
Sean Chittenden
71997d4be4
Cross-reference pw(8) into chpass(1), passwd(1), and vipw(8).
2005-08-02 21:38:03 +00:00
Ruslan Ermilov
0227791b40
Expand *n't contractions.
2005-02-13 22:25:33 +00:00
Ruslan Ermilov
3ac17feb8a
Fixed xref.
2005-01-21 10:48:35 +00:00
Andrey A. Chernov
d56162c180
NO_NIS cleanup: LINKS and MLINKS
2004-12-29 08:16:39 +00:00
Ruslan Ermilov
557b7fa148
Deal with double whitespace.
2004-07-03 00:24:45 +00:00
Ruslan Ermilov
6a3e8b0adc
Mechanically kill hard sentence breaks.
2004-07-02 22:22:35 +00:00
Jacques Vidrine
3fcf3dd63a
While I really liked the error message one received from `passwd'
...
when it could not determine the source of the user's passwd(5) entry,
it might be somewhat confusing now that we can have sources that are
not compiled into libc.
2003-04-18 21:27:09 +00:00
Ruslan Ermilov
facc67676f
mdoc(7) police: Deal with self-xrefs.
2002-12-24 13:41:48 +00:00
Philippe Charnier
f4cda4bb8f
Introduce enumerate of options using the standard way.
...
Remove .Pp between items.
2002-10-16 15:32:16 +00:00
Chris D. Faulhaber
753d42d2ea
#include <stdlib.h> for exit(3) prototype.
2002-05-11 03:18:14 +00:00
Dag-Erling Smørgrav
f882171a2e
These files haven't been used in a while.
2002-05-08 01:35:22 +00:00
Mark Murray
8feb878d72
Fix VCS inclusions.
2002-04-28 11:52:43 +00:00
Dag-Erling Smørgrav
d397408818
Usage style sweep: spell "usage" with a small 'u'.
...
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
Philippe Charnier
e8937ba009
Use `The .Nm utility'
2002-04-20 12:18:28 +00:00
Dag-Erling Smørgrav
5f0ae68a18
PAMified passwd(1). Some NIS-related issues remain to be solved, but this
...
should work for everyday use.
Sponsored by: DARPA, NAI Labs
2002-04-15 03:02:57 +00:00
Dag-Erling Smørgrav
839316e581
Remove bogus dependency on rlogin.
2002-04-13 23:31:27 +00:00
Warner Losh
d3cb5ded92
remove __P
2002-03-22 01:33:25 +00:00
Crist J. Clark
51906f452e
Fix world breakage introduced by my recent modifications to
...
chpass(8). The relations between libc, libpam, chpass, passwd, and
vipw are a mess and probably should be cleaned up.
Submitted by: Peter Pentchev <roam@ringlet.net>
2002-03-18 12:55:28 +00:00
Dag-Erling Smørgrav
ed4d1c46a2
Apply the following mechanical transformations in preparation for
...
ansification and constification:
s{\s+__P\((\(.*?\))\)}{$1}g;
s{\(\s+}{\(}g;
s{\s+\)}{\)}g;
s{\s+,}{,}g;
s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g;
s{return ([^\(].*?);}{return ($1);}g;
s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g;
s{\s+$}{\n};g
Also add $FreeBSD$ where needed.
MFC after: 1 week
2002-02-06 13:30:31 +00:00
Alfred Perlstein
8858373f83
The clnt_create(KEYSERVSOCK, CRYPT_PROG, CRYPT_VERS, "unix") hacks
...
were removed and replaced them with clnt_tp_create, now the af_local
support is fixed.
I also removed the hack how rpcinfo contacted rpcbind, now we can
relay on clnt_tp_create create the client-handle for us. Only
rpcbind itself needs a hardcoded socket-path.
Submitted by: mbr
Also add $FreeBSD
2002-02-05 19:26:04 +00:00
Ruslan Ermilov
cda2a9b2f0
Set BINOWN=root explicitly for setuid root binaries.
...
This is not "useless", as one may have non-default
setting for BINOWN in make.conf, and we still want
these to be installed setuid root in this case.
2001-09-13 06:48:18 +00:00
Dima Dorfman
f247324df7
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
Ruslan Ermilov
625003720a
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 14:16:33 +00:00
Ruslan Ermilov
dc12be5258
MAN[1-9] -> MAN.
2001-03-27 10:52:19 +00:00
Assar Westerlund
1d4589b693
reset uid back to the user before doing kerberised change password.
...
root permission is not needed and the kerberos library is paranoid
about access control to the ticket file
PR: bin/20779
2001-03-12 03:52:00 +00:00
Mark Murray
82e377fd12
Updates for Blowfish password hashing.
2001-03-11 16:37:33 +00:00
Ruslan Ermilov
8fe908ef0c
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
Ruslan Ermilov
726b61ab5f
Avoid use of direct troff requests in mdoc(7) manual pages.
2000-11-10 17:46:15 +00:00
Sheldon Hearn
d20cdce92f
Correct a few typos, including a mis-represented option (-s instead of
...
-h for NIS host).
Submitted by: Peter Avalos <pavalos@theshell.com>
2000-09-18 07:45:47 +00:00
Brian Feldman
0debe874a0
Fix a premature freeing bug found with malloc debugging courtesy John Hay.
...
Submitted by: jhay
2000-08-26 03:42:51 +00:00
Brian Feldman
04c9749ff0
Add working and easy crypt(3)-switching. Yes, we need a whole new API
...
for crypt(3) by now. In any case:
Add crypt_set_format(3) + documentation to -lcrypt.
Add login_setcryptfmt(3) + documentation to -lutil.
Support for switching crypt formats in passwd(8).
Support for switching crypt formats in pw(8).
The simple synopsis is:
edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :)
Reviewed by: peter
2000-08-22 02:15:54 +00:00
Kris Kennaway
bb49f794f5
Buildworld fixes for NO_OPENSSH and NO_OPENSSL
...
Approved by: jkh
2000-03-09 06:29:05 +00:00
Sheldon Hearn
87faa07bec
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
Mark Murray
0ed9356caf
Use libcrypto in place of libdes.
2000-02-24 21:06:22 +00:00
Nik Clayton
b5edd6da96
Teach passwd about a new "mixpasswordcase" login.conf parameter. If this
...
parameter is missing, or specified as above, then passwd behaves as normal
when the user enters an all lower case password -- i.e., it prompts them
to use mixed case, and will only grudgingly accept an all lower case
password.
If you negate this entry in login.conf, with "mixpasswordcase@", then
passwd will allow all lower case passwords without complaining.
Approved by: jkh
2000-02-11 14:08:44 +00:00
Nik Clayton
485343f5ff
Teach passwd about a new "mixpasswordcase" login.conf parameter. If this
...
parameter is missing, or specified as above, then passwd behaves as normal
when the user enters an all lower case password -- i.e., it prompts them
to use mixed case, and will only grudgingly accept an all lower case
password.
If you negate this entry in login.conf, with "mixpasswordcase@", then
passwd will allow all lower case passwords without complaining.
Approved by: jkh
2000-02-11 13:45:51 +00:00
Peter Wemm
6e2578e4c4
Revert the libcrypt/libmd stuff back to how it was. This should not have
...
happened as it was working around problems elsewhere (ie: binutils/ld
not doing the right thing according to the ELF design). libcrypt has
been adjusted to not need the runtime -lmd. It's still not quite right
(ld is supposed to work damnit) but at least it doesn't impact all the
users of libcrypt in Marcel's cross-build model.
1999-12-18 13:55:17 +00:00
Marcel Moolenaar
7c99ddf2cc
Add libmd (or move it after libcrypt). We don't want the linker to be
...
smart because it will definitely get it wrong. This popped up during
cross-linking.
1999-12-16 10:55:45 +00:00
Roger Hardiman
f5d0153981
Update PicoBSD so it does not need to patch the passwd Makefile.
1999-10-30 09:19:30 +00:00
Mark Murray
f7f09ffb6c
Change edistribution to krb4 in preaparation for K5
1999-09-19 22:26:02 +00:00
Peter Wemm
0c2b3c31aa
Unifdef -DPASSWD_IGNORE_COMMENTS. This wasn't really optional and
...
we have enough pseudo-options already.
1999-09-06 17:30:03 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Sheldon Hearn
e4268c5913
Allow comments and blank lines as advertised in passwd(5).
...
PR: 12828
Submitted by: Yasuhiro Fukuma <yasuf@big.or.jp>
1999-07-29 16:30:35 +00:00
Greg Lehey
9045b882d5
Clarify when the user gets a prompt for the old password, and that
...
passwords are not echoed.
Get quotes right in troff.
1999-05-03 00:56:05 +00:00