summaryrefslogtreecommitdiffstats
path: root/lib/libutil (follow)
Commit message (Collapse)AuthorAgeFilesLines
* knf; otto okderaadt2004-05-2814-117/+77
|
* kill whitespace at eol;jmc2004-04-211-2/+2
|
* Adapt to new pw_copy() API, closes PR 3698.millert2004-04-201-11/+6
|
* Change pw_copy(3) to take a 3rd arguement, the existing passwd entry.millert2004-04-204-13/+49
| | | | | | | This allows an application to only update a password entry if it is in the state it expects. Additionally, if the old passwd struct is specified the new one may have a different pw_name field since matching is done on the original. Adapted from FreeBSD.
* Crank max ptys to 992. We now have 62 pty/tty pairs for each lettermillert2004-04-111-5/+6
| | | | | | instead of 16. E.g. it is now /dev/{p,t}typ[0-9a-zA-z] instead of just /dev/{p,t}typ[0-9a-f]. This requires that you update MAKEDEV and run: # cd /dev && ./MAKEDEV pty0 && rm -f [pt]ty[rq]*
* typoespie2004-02-211-2/+2
|
* Add the ptm device to pty(4). By opening /dev/ptm and using the PTMGETmillert2004-02-102-4/+60
| | | | | | | | | | | ioctl(2), an unprivileged process may allocate a pty and have its owner and mode set appropriately. This means that programs such as xterm and screen no longer need to be setuid. Programs using the openpty() function require zero changes and will "just work". Designed by beck@ and deraadt@; changes by beck@ with cleanup (and a rewrite of the vnode bits) by art@ and tweaks/bugfixes by me. Tested by many.
* o Do not drop unit when printing -100otto2003-12-271-5/+8
| | | | | | | o Round negative numbers correctly o Do not print fractional valus for byte values ok ian@ henning@
* utilties -> utilities; from Jared Yanovichjmc2003-10-221-2/+2
|
* fix use-after-free for expired passwds; ok deraadt, tdevalmarkus2003-09-021-7/+9
|
* move junk (bad code, terrible APIs) to the only program that uses it;deraadt2003-07-235-1668/+6
| | | | millert ok
* fix function description in SYNOPSIS;jmc2003-07-151-16/+16
|
* ansi and protosderaadt2003-06-261-45/+24
|
* Sync with share/misc/license.template and add missing DARPA creditmillert2003-06-171-8/+8
| | | | where applicable.
* Use an ISC-tyle license for all my code; it is simpler and more permissive.millert2003-06-031-19/+11
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0212-78/+30
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* - section reorderjmc2003-06-024-36/+36
| | | | - clean up .Xr's
* - typosjmc2003-05-236-47/+50
| | | | - new sentence, new line
* New: fmt_scaled() and scan_scaled() convert to and from "human readable"ian2003-05-155-5/+424
| | | | | | or scaled numbers. fmt_scaled, and the format, based on Ken Stailey's code for "df -h"; scan_scaled is new. Significantly commented on and reworked by pjanzen@; other comments from millert@. OK pjanzen@.
* knfderaadt2003-04-021-3/+3
|
* Throw an error if the username field is empty; noticed by mpech@millert2003-04-011-3/+4
|
* more asprintf; millert okderaadt2003-03-301-5/+3
|
* asprintf; millert okderaadt2003-03-301-5/+4
|
* .Xr typos;jmc2003-03-062-6/+6
| | | | ok deraadt@
* Crank all library major numbers. Needed due to the fact that wemillert2002-12-031-2/+2
| | | | | | | | now build libraries with propolice enabled. Without this, existing binaries (such as ports/packages) that link with any system library other than libc will fail with an undefined symbol of "___guard" (__guard on ELF). Pointed out by markus@ and discussed with deraadt@
* Add HISTORY sectionmillert2002-11-241-1/+8
|
* do not export error_tablederaadt2002-08-231-2/+2
|
* mark pw_error() __dead since it exitsmillert2002-07-311-3/+3
|
* %u for uid/gid; millert okderaadt2002-06-271-6/+7
|
* Now that we don't have a trailing newline we need to explicitly checkmillert2002-06-251-3/+4
| | | | that the first char in the line is not NUL after killing comments.
* Use strtok_r() instead of strsep() since the latter treats consecutivemillert2002-06-221-8/+22
| | | | | field separators as empty field. This is not what we want for whitespace-delimited fields.
* login_fbtab(3) fixes:millert2002-06-213-63/+71
| | | | | | | | o make first arg const since we don't modify it o use strsep() instead of strtok() as strtok() changes internal state o add some bounds checking and use strlcat() instead of pointer arithmetic o ANSI function headers Originally based on a patch from Lars J. Buitinck but much modified.
* some -Wall and spaces cleanup, scsi.c left.fgsch2002-06-0913-28/+28
| | | | some brave soul should look at it.
* pid_t cleanupderaadt2002-05-262-7/+7
|
* strlcpy at most 16 characters, so says man pagederaadt2002-05-241-4/+9
|
* strlcpy and KNFderaadt2002-05-241-29/+32
|
* KNFderaadt2002-05-241-4/+4
|
* atexit(3) can fail. handle error accordingly. deraadt okitojun2002-05-221-3/+11
| | | | | XXX libraries should not use atexit(3) from within, as program can terminate with _exit.
* o) start new sentence on a new line;mpech2002-05-018-44/+65
| | | | | | | o) always close .Bl tags; o) fix usage of .Xr; millert@ ok
* Initial cleanup:mpech2002-04-301-2/+2
| | | | | | | | | | | | o) remove extra space in the end of line; o) remove extra blank lines in the end of file; o) remove .Pp before .Ss; o) CAVEAT -> CAVEATS; o) fix usage of .Fa; o) <blank-line> -> .Pp; o) wrap long lines; millert@ ok
* Clean up after pw_file().mpech2002-04-101-3/+6
| | | | | millert@ ok deraadt@ ok to commit
* mdoc fixes from pjanzenpvalchev2002-02-261-2/+6
|
* rephrase warning; from miodpvalchev2002-02-261-3/+3
|
* print a warning that realpath points to internal static storage space thatpvalchev2002-02-251-1/+4
| | | | will be overwritten by subsequent calls; suggested by pjanzen, ok millert
* fgsch, if you commit without test compiling ONE MORE TIME, I will send a castration team down to argentinaderaadt2002-02-211-2/+2
|
* use sizeof w/ defines; niklas@ millert@ ok.fgsch2002-02-211-3/+3
|
* login_close() should avoid memory leak.mpech2002-02-191-1/+2
| | | | millert@ ok
* Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)millert2002-02-172-22/+19
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-167-55/+55
|
* Use the volatile specifier to fix warnings about variables beingmillert2002-01-161-6/+4
| | | | clobbered by longjmp / vfork instead of the gcc "(void)&foo;" hack.