summaryrefslogtreecommitdiffstats
path: root/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* Correct uu_lock_txfr. I don't think this ever worked correctly.brian2000-10-021-5/+6
|
* Document passwd_format further.green2000-09-301-0/+4
|
* Constify the arg to logout(3). It is const-safe.peter2000-09-042-3/+3
| | | | (cosmetic: drop some "register" qualifications too.)
* Move setproctitle() from libutil to libc (after a repo-copy)brian2000-09-024-252/+2
| | | | | | | | | 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
* Add weak symbol pragma for crypt_set_format().asmodai2000-08-231-0/+6
| | | | Approved by: green
* Stick login_setcryptfmt() in its own file to make pulling in ofgreen2000-08-233-17/+46
| | | | -lcrypt only happen if truly necessary.
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIgreen2000-08-224-2/+40
| | | | | | | | | | | | | | 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
* If the format string passed to setproctitle begins with a '-'ps2000-08-012-24/+14
| | | | | | | character, skip the program name when setting the process title. Ansified with extreme prejudice. Reviewed by: peter
* Sshd writes connected host into utmp directly. If the connection isume2000-07-141-7/+14
| | | | | | 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.
* Make sbsize a size instead of a number. This allows the usual suffixessheldonh2000-07-142-2/+2
| | | | | | | | | 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>
* Don't call warn() without a format string.kris2000-07-121-1/+1
|
* Better fix for .Fx macroache2000-07-061-2/+4
| | | | Submitted by: sheldonh
* Fix .Fx usage (causing error diagnositc)ache2000-07-061-1/+2
|
* document sbsize limit.alfred2000-06-021-0/+1
|
* We should see the ai_canonname menber of the first addrinfoume2000-05-241-6/+6
| | | | | | structure in the linked list. RFC2553 mentions only first. Reviewed by: shin
* Fix a memory leak with lc->lc_cap in login_close().hoek2000-05-211-0/+1
| | | | PR: bin/17084
* Fix miscellaneous mdoc macro argument limit infringements.sheldonh2000-05-091-1/+1
| | | | | PR: 18465 Reported by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
* Add xref to cap_mkdb(1).nik2000-04-301-0/+1
| | | | | PR: docs/17544 Submitted by: Christ J. Clark <cjc@cc942873-a.ewndsr1.nj.home.com>
* Introduce .Lb macro to libutil manpagesphantom2000-04-2219-127/+50
| | | | | | Sort .Nm values in some manpages Remove explicit note about compiling with -lutil, it's implicitly declared by .Lb macro now.
* Fix some spelling errors.mpp2000-03-241-6/+6
|
* Return IPv4 native address for IPv4 mapped IPv6 address, even ifume2000-03-231-8/+23
| | | | | | A RR is not found. Reviewed by: shin
* Since crypto/openssh/login.c was changed to use realhostname_sa(),ume2000-03-071-13/+29
| | | | | | | | | 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
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-023-3/+6
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Update major version.shin2000-02-141-2/+2
| | | | | | | | | | 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
* Document mixpasswordcase here as well as in passwd.1nik2000-02-111-0/+3
|
* Historically file flags (schg, uschg, etc) have been converted fromjoe2000-01-272-151/+1
| | | | | | | | | | | | | | | | | 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 ;)
* Avoid core dump when ai_canonname is NULL.shin2000-01-271-4/+8
| | | | | | (Now this happens for numeric addrs, as getaddrinfo() 1.3 -> 1.4 change) Reviewed by: Mark Huizer <xaa@timewasters.nl>
* Use a long line instead splitting a line with backslash-newline in synopsis.bde2000-01-271-2/+1
| | | | My synopsis checker doesn't understand backslash-newline.
* Use a more conventional copyright message.peter2000-01-261-9/+14
|
* several tcp apps IPv6 updateshin2000-01-255-2/+237
| | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Do not set the default terminal type to "su", leave it empty.ru2000-01-192-6/+2
| | | | | PR: bin/5084 Reviewed by: asmodai, davidn, sef
* Repair internal consistency: Change "login_cap_t * lc" to a more correctchris2000-01-181-1/+1
| | | | (and consistent) "login_cap_t *lc".
* Add the "use -lutil" line to all functions that require it so people likebillf2000-01-187-0/+39
| | | | | | | Dan Papsian <bugg@bugg.strangled.net> don't anger wpaul and myself with silly linking errors. Reviewed by: chris
* Support v6 login.shin2000-01-151-7/+24
|
* Replace beforeinstall target with new variables used by .mk system.rgrimes2000-01-141-6/+1
| | | | Reviewed by: marcel, and make world
* Fixed missing include in synopsis.bde2000-01-051-1/+2
| | | | | Removed superfluous quoting of function name in .Fo macro. My synopsis checker doesn't understand it.
* Moved flags_to_string and string_to_flags into libutil. It's used injoe1999-12-301-1/+2
| | | | many places nowadays.
* Connect fparseln(3) for mailwrapper(8)peter1999-12-294-5/+22
|
* Fix a bug where a pointer would be one character too far after puttingroberto1999-12-211-1/+1
| | | | | | a '\0' at the end of a string. Submitted by: Martin Birgmeier <Martin.Birgmeier@aon.at>
* Rewriting of flags_to_string() and string_to_flags() to use an array.roberto1999-12-191-86/+61
| | | | | PR: bin/3648 Submitted by: Martin Birgmeier <mbirg@austria.ds.philips.com>
* This commit was generated by cvs2svn to compensate for changes in r54820,peter1999-12-192-0/+383
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import fparseln(3) from NetBSD. It's used for easily dealing with \peter1999-12-192-0/+383
| | | | escaped lines etc. (used by mailwrapper)
* Make setproctitle(NULL) restore all of the original argumentsbrian1999-11-172-30/+45
| | | | (if it's able).
* Introduce commandline caching in the kernel.phk1999-11-161-0/+9
| | | | | | | | | | | 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.
* Link manual page for login_getpwclass(3) to login_cap(3).jkoshy1999-11-041-1/+3
| | | | | PR: docs/14673 Submitted by: Andrew <andrew@ugh.net.au>
* This implements the RLIMIT_SBSIZE ("sbsize") administrative limits forgreen1999-10-092-0/+2
| | | | | userland. Currently, it can be enforced by login and csh. More shells supporting sbsize are welcome.
* mdoc(7)'fyphantom1999-09-218-24/+28
| | | | Reviewed by: mpp
* Correct spelling : ascii -> ASCIIphantom1999-09-203-3/+3
| | | | | | PR: docs/13702 Submitted by: Stephen J. Roznowski <sjr@home.com> Reviewed by: mpp
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-2835-35/+35
|
OpenPOWER on IntegriCloud