Brian Somers
ecbf047d3b
Correct uu_lock_txfr. I don't think this ever worked correctly.
2000-10-02 17:32:00 +00:00
Brian Feldman
d29b305125
Document passwd_format further.
2000-09-30 00:37:44 +00:00
Peter Wemm
8cfadb8904
Constify the arg to logout(3). It is const-safe.
...
(cosmetic: drop some "register" qualifications too.)
2000-09-04 08:13:49 +00:00
Brian Somers
9feac5c218
Move setproctitle() from libutil to libc (after a repo-copy)
...
and bump __FreeBSD_version to 500012 to mark the occasion.
setproctitle() is prototyped in unistd.h as opposed to stdlib.h
where OpenBSD and NetBSD have it.
Reviewed by: peter
2000-09-02 01:51:36 +00:00
Jeroen Ruigrok van der Werven
de4b2114a4
Add weak symbol pragma for crypt_set_format().
...
Approved by: green
2000-08-23 11:54:10 +00:00
Brian Feldman
c2534fa193
Stick login_setcryptfmt() in its own file to make pulling in of
...
-lcrypt only happen if truly necessary.
2000-08-23 03:45:57 +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
Paul Saab
305ad8f908
If the format string passed to setproctitle begins with a '-'
...
character, skip the program name when setting the process title.
Ansified with extreme prejudice.
Reviewed by: peter
2000-08-01 06:37:09 +00:00
Hajimu UMEMOTO
6484396e99
Sshd writes connected host into utmp directly. If the connection is
...
via IPv6, the hostname is trimed due to the length of IPv6 address.
This change saves it as possible.
I have a grudge against the shortage of UT_HOSTSIZE.
2000-07-14 18:08:19 +00:00
Sheldon Hearn
0c69785700
Make sbsize a size instead of a number. This allows the usual suffixes
...
to be applied to the value given. This does not break installed
/etc/login.conf files, since un-suffixed numbers are interpreted as
they were before.
PR: 19750
Submitted by: Paul Herman <pherman@frenchfries.net>
2000-07-14 13:56:07 +00:00
Kris Kennaway
0e0b415c72
Don't call warn() without a format string.
2000-07-12 00:50:15 +00:00
Andrey A. Chernov
42148dbc70
Better fix for .Fx macro
...
Submitted by: sheldonh
2000-07-06 20:13:42 +00:00
Andrey A. Chernov
26c4c891be
Fix .Fx usage (causing error diagnositc)
2000-07-06 00:25:05 +00:00
Alfred Perlstein
e8dca93127
document sbsize limit.
2000-06-02 20:51:05 +00:00
Hajimu UMEMOTO
4efe647d8b
We should see the ai_canonname menber of the first addrinfo
...
structure in the linked list. RFC2553 mentions only first.
Reviewed by: shin
2000-05-24 11:24:49 +00:00
Tim Vanderhoek
3f81737f30
Fix a memory leak with lc->lc_cap in login_close().
...
PR: bin/17084
2000-05-21 02:50:36 +00:00
Sheldon Hearn
f167d7fb3e
Fix miscellaneous mdoc macro argument limit infringements.
...
PR: 18465
Reported by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
2000-05-09 14:02:06 +00:00
Nik Clayton
eabfa0f434
Add xref to cap_mkdb(1).
...
PR: docs/17544
Submitted by: Christ J. Clark <cjc@cc942873-a.ewndsr1.nj.home.com>
2000-04-30 22:43:09 +00:00
Alexey Zelkin
3dc329d1be
Introduce .Lb macro to libutil manpages
...
Sort .Nm values in some manpages
Remove explicit note about compiling with -lutil, it's implicitly
declared by .Lb macro now.
2000-04-22 16:17:00 +00:00
Mike Pritchard
292bf7190f
Fix some spelling errors.
2000-03-24 00:58:49 +00:00
Hajimu UMEMOTO
9ed4e87cad
Return IPv4 native address for IPv4 mapped IPv6 address, even if
...
A RR is not found.
Reviewed by: shin
2000-03-23 17:25:00 +00:00
Hajimu UMEMOTO
88f853e037
Since crypto/openssh/login.c was changed to use realhostname_sa(),
...
when connecting via IPv6, hostname was not recorded to utmp anymore.
Because, if hostname is longer than buffer size, getnameinfo() returns
with ENI_MEMORY.
Reviewed by: shin
Approved by: jkh
2000-03-07 07:52:01 +00:00
Sheldon Hearn
c6ff3a1bf7
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-02 09:14:21 +00:00
Yoshinobu Inoue
3a6be83f49
Update major version.
...
Now libutil depends on libc.so.4, so needs to update the major version.
Without this, old binaries which use libutil and build with libc.so.3
will coredump on recent 4.0.
Solicited comment for cvs-committers and there seems to be no objection.
Approved by: jkh
2000-02-14 03:55:27 +00:00
Nik Clayton
dc23d0609b
Document mixpasswordcase here as well as in passwd.1
2000-02-11 13:55:41 +00:00
Josef Karthauser
18c0eeddf7
Historically file flags (schg, uschg, etc) have been converted from
...
string to u_long and back using two functions, flags_to_string and
string_to_flags, which co-existed with 'ls'. As time has progressed
more and more other tools have used these private functions to
manipulate the file flags.
Recently I moved these functions from /usr/src/bin/ls to libutil,
but after some discussion with bde it's been decided that they
really ought to go in libc.
There are two already existing libc functions for manipulating file
modes: setmode and getmode. In keeping with these flags_to_string
has been renamed getflags and string_to_flags to setflags.
The manual page could probably be improved upon ;)
2000-01-27 21:17:01 +00:00
Yoshinobu Inoue
01d81a0351
Avoid core dump when ai_canonname is NULL.
...
(Now this happens for numeric addrs, as getaddrinfo() 1.3 -> 1.4 change)
Reviewed by: Mark Huizer <xaa@timewasters.nl>
2000-01-27 17:24:53 +00:00
Bruce Evans
cc8ffb11cd
Use a long line instead splitting a line with backslash-newline in synopsis.
...
My synopsis checker doesn't understand backslash-newline.
2000-01-27 03:04:11 +00:00
Peter Wemm
4dc2c0b8b3
Use a more conventional copyright message.
2000-01-26 07:17:00 +00:00
Yoshinobu Inoue
0cac72f42c
several tcp apps IPv6 update
...
-inetd
-rshd
-rlogind
-telnetd
-rsh
-rlogin
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
2000-01-25 14:52:10 +00:00
Ruslan Ermilov
36807a7b25
Do not set the default terminal type to "su", leave it empty.
...
PR: bin/5084
Reviewed by: asmodai, davidn, sef
2000-01-19 10:54:44 +00:00
Chris Costello
da55e68c66
Repair internal consistency: Change "login_cap_t * lc" to a more correct
...
(and consistent) "login_cap_t *lc".
2000-01-18 03:02:29 +00:00
Bill Fumerola
4aee48edcc
Add the "use -lutil" line to all functions that require it so people like
...
Dan Papsian <bugg@bugg.strangled.net> don't anger wpaul and myself with
silly linking errors.
Reviewed by: chris
2000-01-18 01:27:47 +00:00
Yoshinobu Inoue
ad5e523b7f
Support v6 login.
2000-01-15 03:26:54 +00:00
Rodney W. Grimes
d05257b0f2
Replace beforeinstall target with new variables used by .mk system.
...
Reviewed by: marcel, and make world
2000-01-14 07:57:47 +00:00
Bruce Evans
2e22df0b11
Fixed missing include in synopsis.
...
Removed superfluous quoting of function name in .Fo macro. My synopsis
checker doesn't understand it.
2000-01-05 16:31:12 +00:00
Josef Karthauser
edc2844c9f
Moved flags_to_string and string_to_flags into libutil. It's used in
...
many places nowadays.
1999-12-30 13:15:15 +00:00
Peter Wemm
2705d66b49
Connect fparseln(3) for mailwrapper(8)
1999-12-29 17:50:34 +00:00
Ollivier Robert
aa50282cd1
Fix a bug where a pointer would be one character too far after putting
...
a '\0' at the end of a string.
Submitted by: Martin Birgmeier <Martin.Birgmeier@aon.at>
1999-12-21 10:17:36 +00:00
Ollivier Robert
27d5775d8c
Rewriting of flags_to_string() and string_to_flags() to use an array.
...
PR: bin/3648
Submitted by: Martin Birgmeier <mbirg@austria.ds.philips.com>
1999-12-19 15:31:24 +00:00
Peter Wemm
1fa45844c4
This commit was generated by cvs2svn to compensate for changes in r54820,
...
which included commits to RCS files with non-trunk default branches.
1999-12-19 14:14:37 +00:00
Peter Wemm
d6e91b3149
Import fparseln(3) from NetBSD. It's used for easily dealing with \
...
escaped lines etc. (used by mailwrapper)
1999-12-19 14:14:37 +00:00
Brian Somers
0675e24de0
Make setproctitle(NULL) restore all of the original arguments
...
(if it's able).
1999-11-17 21:12:17 +00:00
Poul-Henning Kamp
b9df5231ca
Introduce commandline caching in the kernel.
...
This fixes some nasty procfs problems for SMP, makes ps(1) run much faster,
and makes ps(1) even less dependent on /proc which will aid chroot and
jails alike.
To disable this facility and revert to previous behaviour:
sysctl -w kern.ps_arg_cache_limit=0
For full details see the current@FreeBSD.org mail-archives.
1999-11-16 20:31:58 +00:00
Joseph Koshy
07ee6e1899
Link manual page for login_getpwclass(3) to login_cap(3).
...
PR: docs/14673
Submitted by: Andrew <andrew@ugh.net.au>
1999-11-04 08:33:18 +00:00
Brian Feldman
6b3ced11a2
This implements the RLIMIT_SBSIZE ("sbsize") administrative limits for
...
userland. Currently, it can be enforced by login and csh. More
shells supporting sbsize are welcome.
1999-10-09 20:47:59 +00:00
Alexey Zelkin
3a049969b5
mdoc(7)'fy
...
Reviewed by: mpp
1999-09-21 19:39:27 +00:00
Alexey Zelkin
c6d6e7726f
Correct spelling : ascii -> ASCII
...
PR: docs/13702
Submitted by: Stephen J. Roznowski <sjr@home.com>
Reviewed by: mpp
1999-09-20 09:15:23 +00:00
Peter Wemm
97d92980a9
$Id$ -> $FreeBSD$
1999-08-28 01:35:59 +00:00
Peter Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00