summaryrefslogtreecommitdiff
path: root/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* Add weak symbol pragma for crypt_set_format().Jeroen Ruigrok van der Werven2000-08-231-0/+6
| | | | | | | Approved by: green Notes: svn path=/head/; revision=65025
* Stick login_setcryptfmt() in its own file to make pulling in ofBrian Feldman2000-08-233-17/+46
| | | | | | | -lcrypt only happen if truly necessary. Notes: svn path=/head/; revision=64990
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIBrian Feldman2000-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 Notes: svn path=/head/; revision=64918
* If the format string passed to setproctitle begins with a '-'Paul Saab2000-08-012-24/+14
| | | | | | | | | | character, skip the program name when setting the process title. Ansified with extreme prejudice. Reviewed by: peter Notes: svn path=/head/; revision=64094
* Sshd writes connected host into utmp directly. If the connection isHajimu UMEMOTO2000-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. Notes: svn path=/head/; revision=63164
* Make sbsize a size instead of a number. This allows the usual suffixesSheldon Hearn2000-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> Notes: svn path=/head/; revision=63149
* Don't call warn() without a format string.Kris Kennaway2000-07-121-1/+1
| | | | Notes: svn path=/head/; revision=62988
* Better fix for .Fx macroAndrey A. Chernov2000-07-061-2/+4
| | | | | | | Submitted by: sheldonh Notes: svn path=/head/; revision=62685
* Fix .Fx usage (causing error diagnositc)Andrey A. Chernov2000-07-061-1/+2
| | | | Notes: svn path=/head/; revision=62659
* document sbsize limit.Alfred Perlstein2000-06-021-0/+1
| | | | Notes: svn path=/head/; revision=61184
* We should see the ai_canonname menber of the first addrinfoHajimu UMEMOTO2000-05-241-6/+6
| | | | | | | | | structure in the linked list. RFC2553 mentions only first. Reviewed by: shin Notes: svn path=/head/; revision=60870
* Fix a memory leak with lc->lc_cap in login_close().Tim Vanderhoek2000-05-211-0/+1
| | | | | | | PR: bin/17084 Notes: svn path=/head/; revision=60746
* Fix miscellaneous mdoc macro argument limit infringements.Sheldon Hearn2000-05-091-1/+1
| | | | | | | | PR: 18465 Reported by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp> Notes: svn path=/head/; revision=60258
* Add xref to cap_mkdb(1).Nik Clayton2000-04-301-0/+1
| | | | | | | | PR: docs/17544 Submitted by: Christ J. Clark <cjc@cc942873-a.ewndsr1.nj.home.com> Notes: svn path=/head/; revision=59804
* Introduce .Lb macro to libutil manpagesAlexey Zelkin2000-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. Notes: svn path=/head/; revision=59516
* Fix some spelling errors.Mike Pritchard2000-03-241-6/+6
| | | | Notes: svn path=/head/; revision=58509
* Return IPv4 native address for IPv4 mapped IPv6 address, even ifHajimu UMEMOTO2000-03-231-8/+23
| | | | | | | | | A RR is not found. Reviewed by: shin Notes: svn path=/head/; revision=58495
* Since crypto/openssh/login.c was changed to use realhostname_sa(),Hajimu UMEMOTO2000-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 Notes: svn path=/head/; revision=57789
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-023-3/+6
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57686
* Update major version.Yoshinobu Inoue2000-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 Notes: svn path=/head/; revision=57197
* Document mixpasswordcase here as well as in passwd.1Nik Clayton2000-02-111-0/+3
| | | | Notes: svn path=/head/; revision=57142
* Historically file flags (schg, uschg, etc) have been converted fromJosef Karthauser2000-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 ;) Notes: svn path=/head/; revision=56692
* Avoid core dump when ai_canonname is NULL.Yoshinobu Inoue2000-01-271-4/+8
| | | | | | | | | (Now this happens for numeric addrs, as getaddrinfo() 1.3 -> 1.4 change) Reviewed by: Mark Huizer <xaa@timewasters.nl> Notes: svn path=/head/; revision=56682
* Use a long line instead splitting a line with backslash-newline in synopsis.Bruce Evans2000-01-271-2/+1
| | | | | | | My synopsis checker doesn't understand backslash-newline. Notes: svn path=/head/; revision=56661
* Use a more conventional copyright message.Peter Wemm2000-01-261-9/+14
| | | | Notes: svn path=/head/; revision=56626
* several tcp apps IPv6 updateYoshinobu Inoue2000-01-255-2/+237
| | | | | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=56590
* Do not set the default terminal type to "su", leave it empty.Ruslan Ermilov2000-01-192-6/+2
| | | | | | | | PR: bin/5084 Reviewed by: asmodai, davidn, sef Notes: svn path=/head/; revision=56281
* Repair internal consistency: Change "login_cap_t * lc" to a more correctChris Costello2000-01-181-1/+1
| | | | | | | (and consistent) "login_cap_t *lc". Notes: svn path=/head/; revision=56215
* Add the "use -lutil" line to all functions that require it so people likeBill Fumerola2000-01-187-0/+39
| | | | | | | | | | Dan Papsian <bugg@bugg.strangled.net> don't anger wpaul and myself with silly linking errors. Reviewed by: chris Notes: svn path=/head/; revision=56207
* Support v6 login.Yoshinobu Inoue2000-01-151-7/+24
| | | | Notes: svn path=/head/; revision=56010
* Replace beforeinstall target with new variables used by .mk system.Rodney W. Grimes2000-01-141-6/+1
| | | | | | | Reviewed by: marcel, and make world Notes: svn path=/head/; revision=55955
* Fixed missing include in synopsis.Bruce Evans2000-01-051-1/+2
| | | | | | | | Removed superfluous quoting of function name in .Fo macro. My synopsis checker doesn't understand it. Notes: svn path=/head/; revision=55461
* Moved flags_to_string and string_to_flags into libutil. It's used inJosef Karthauser1999-12-301-1/+2
| | | | | | | many places nowadays. Notes: svn path=/head/; revision=55270
* Connect fparseln(3) for mailwrapper(8)Peter Wemm1999-12-294-5/+22
| | | | Notes: svn path=/head/; revision=55227
* Fix a bug where a pointer would be one character too far after puttingOllivier Robert1999-12-211-1/+1
| | | | | | | | | a '\0' at the end of a string. Submitted by: Martin Birgmeier <Martin.Birgmeier@aon.at> Notes: svn path=/head/; revision=54948
* Rewriting of flags_to_string() and string_to_flags() to use an array.Ollivier Robert1999-12-191-86/+61
| | | | | | | | PR: bin/3648 Submitted by: Martin Birgmeier <mbirg@austria.ds.philips.com> Notes: svn path=/head/; revision=54827
* This commit was generated by cvs2svn to compensate for changes in r54820,Peter Wemm1999-12-192-0/+383
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=54821
| * Import fparseln(3) from NetBSD. It's used for easily dealing with \Peter Wemm1999-12-192-0/+383
| | | | | | | escaped lines etc. (used by mailwrapper) Notes: svn path=/vendor/NetBSD/dist/; revision=54820
* Make setproctitle(NULL) restore all of the original argumentsBrian Somers1999-11-172-30/+45
| | | | | | | (if it's able). Notes: svn path=/head/; revision=53297
* Introduce commandline caching in the kernel.Poul-Henning Kamp1999-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. Notes: svn path=/head/; revision=53239
* Link manual page for login_getpwclass(3) to login_cap(3).Joseph Koshy1999-11-041-1/+3
| | | | | | | | PR: docs/14673 Submitted by: Andrew <andrew@ugh.net.au> Notes: svn path=/head/; revision=52867
* This implements the RLIMIT_SBSIZE ("sbsize") administrative limits forBrian Feldman1999-10-092-0/+2
| | | | | | | | userland. Currently, it can be enforced by login and csh. More shells supporting sbsize are welcome. Notes: svn path=/head/; revision=52071
* mdoc(7)'fyAlexey Zelkin1999-09-218-24/+28
| | | | | | | Reviewed by: mpp Notes: svn path=/head/; revision=51518
* Correct spelling : ascii -> ASCIIAlexey Zelkin1999-09-203-3/+3
| | | | | | | | | PR: docs/13702 Submitted by: Stephen J. Roznowski <sjr@home.com> Reviewed by: mpp Notes: svn path=/head/; revision=51457
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2835-35/+35
| | | | Notes: svn path=/head/; revision=50476
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50471
* Fix a bunch of broken cross-referencesChris Costello1999-08-181-2/+2
| | | | Notes: svn path=/head/; revision=50000
* Various man page cleanup:Mike Pritchard1999-08-152-6/+6
| | | | | | | | | | | | | - Sort xrefs - FreeBSD.ORG -> FreeBSD.org - Be consistent with section names as outlines in mdoc(7) - Other misc mdoc cleanup. PR: doc/13144 Submitted by: Alexy M. Zelkin <phantom@cris.net> Notes: svn path=/head/; revision=49828
* Bad reference of termios(3) changed to termios(4).Chris Costello1999-08-141-2/+2
| | | | Notes: svn path=/head/; revision=49751