summaryrefslogtreecommitdiffstats
path: root/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Fix a bunch of broken cross-referenceschris1999-08-181-2/+2
|
* Various man page cleanup:mpp1999-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>
* Bad reference of termios(3) changed to termios(4).chris1999-08-141-2/+2
|
* Bad reference to lstat(3) changed to lstat(2)chris1999-08-141-2/+2
|
* Axe LOGIN_CAP_AUTH.sheldonh1999-08-133-571/+2
| | | | | | PR: 10115 Reported by: Gene Skonicki <gene@cif.rochester.edu> Requested by: jdp
* Correct some grammar and style problems with this page.nik1999-07-201-16/+16
| | | | Submitted by: Kris Kennaway <root@rebel.net.au>
* Be a little clearer about login_getpwclass(3), and its penchant fornik1999-07-141-1/+7
| | | | | | | looking up a record called "root". PR: docs/12377 Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
* Fix commented out CFLAGS addition for LOGIN_CAP_AUTH, which was missingsheldonh1999-07-121-1/+1
| | | | | | | a make -D option. PR: 12591 Submitted by: Craig Leres <leres@ee.lbl.gov>
* Move call to umask(0) back into pw_util(), because the latterpb1999-06-291-1/+4
| | | | function is also used by chpass(1) and passwd(1).
* Force umask to 077 (instead of 000) during the edit phase, to getpb1999-06-261-4/+1
| | | | | | | | | | secure permissions in case the user attempts to save something to a file of his own. Move umask stuff out of pw_init() into main() for better visibility of overall umask tweaking logic. PR: misc/11797
* Add -d option to vipw(8) to allow selection of an alternative directorysheldonh1999-06-261-8/+14
| | | | | | | for the password files. PR: 2703 Submitted by: jmg
* Remove the static declaration from the line[] variable to allowjb1999-05-241-2/+2
| | | | openpty() to be called from a threaded application.
* Chflags was clearing all flags supplied on the command line after ajmz1999-05-211-2/+2
| | | | | | | clearing flag like dump or noschg, etc. PR: bin/10071 Submitted by: Andreas Klussmann <andreas@infosys.heitec.net>
* fix potential memory overwrite in escape parsingache1999-05-131-2/+2
| | | | | PR: 11687 Submitted by: Don Lewis <Don.Lewis@tsc.tdk.com>
* Change references from "passwordperiod" to "passwordtime", sincehoek1999-04-301-3/+5
| | | | | | "passwordtime" is what passwd(1) has actually been using. I suspect passwordperiod was the original intent. I can't figure-out which, if either, BSDi uses. If anyone knows...
* oops, add pwd!=NULL check to previous fixache1999-04-241-11/+17
|
* Switch to user UID/GID before checking/reading its ~/.login_confache1999-04-241-1/+14
| | | | - some NFSes have root read access disabled
* add MLINKS for two functions used from login_auth.cache1999-04-242-19/+20
| | | | comment out unused functions from login_auth.3
* If given host.domain:nn[.nn], trimdomain() now reduces it tobrian1999-04-092-10/+54
| | | | host:nn[.nn] (if the domain is the same as the local one).
* bcopy -> memmovebrian1999-04-081-2/+2
| | | | Suggested by: archie
* Tidy up trimdomain() and document it.brian1999-04-073-12/+76
| | | | Don't truncate one byte short of the passed length.
* Handle hostnames up to MAXHOSTNAMELEN-1 in length.brian1999-04-071-10/+9
| | | | | | Use bcopy() instead of strcpy() to handle potentially overlapping regions. Un-obscure/complicate some code.
* Put parenthesis around sizeof args.brian1999-04-071-6/+6
| | | | | | Allow for host names up to MAXHOSTNAMELEN - 1 in length. Prompted by: bde
* Add realhostname() - a function to correctly lookupbrian1999-04-064-3/+190
| | | | | a name by address and ensure that the name resolves back to the original address.
* Get the pid right if a stale lock file exists.brian1999-03-111-4/+4
| | | | | PR: 10531 Submitted by: Lawrence D. Lopez <lopez@cisco.com>
* Fixed bitrot in synopsis (some const poisoning had not reached here).bde1999-03-052-4/+4
|
* Removed occurrences of consecutive repeated words (such as "the the").alex1999-02-121-2/+2
|
* Declare setproctitle() as printf0-like.bde1998-12-161-2/+2
|
* Adjust for kern.ps_strings and PS_STRINGS not being a pointer. This isbde1998-12-161-8/+7
| | | | | | | | an unimprovement here. I thought it would be an improvement, as in libkvm, but here we can access the strings directly. Use sysctlbyname() instead of sysctl() and trust it to give a nonzero address if it succeeds.
* oops. Fix indentation of the 'for' loop I just added.dillon1998-12-131-18/+18
|
* Handle the race condition where vipw may lock a password file which hasdillon1998-12-131-6/+22
| | | | | just been replaced. After our lock succeeds we check if st_nlink is 0 and if it is we close the descriptor and retry our open/lock sequence.
* Better document the file format, add in support for nested {}'s in multi-linejkh1998-11-222-8/+28
| | | | property values.
* Since vfork() was changed to fork(), we have to pass errno back from thedes1998-10-201-3/+6
| | | | | | | child to the parent somehow. PR: 8353 Submitted by: Andrew J. Korty <ajk@purdue.edu>
OpenPOWER on IntegriCloud