summaryrefslogtreecommitdiff
path: root/lib/libutil
AgeCommit message (Collapse)Author
2004-11-04Treat EOF at prompt the same as 'n' instead of looping forever.Todd C. Miller
Noticed by mepch@. OK pedro@ and deraadt@
2004-09-18label a switch fallthroughTheo de Raadt
2004-09-18avoid aliasing over library symbolTheo de Raadt
2004-09-18cast not neededTheo de Raadt
2004-09-16fix 1099512676352 -> 2.0T; ok miod@Otto Moerbeek
2004-07-13passwd.conf has been deprecated since login.conf was imported.Todd C. Miller
Today it finally dies. Based on a diff from Gabriel Kihlman.
2004-07-13errno changes, lib major version bumps, and general flag dayMarco S Hyman
To build you must: cd /usr/src && make obj && make includes cd lib/libc && make depend && make && NOMAN=1 sudo make install cd /usr/src && make build
2004-05-28knf; otto okTheo de Raadt
2004-04-21kill whitespace at eol;Jason McIntyre
2004-04-20Adapt to new pw_copy() API, closes PR 3698.Todd C. Miller
2004-04-20Change pw_copy(3) to take a 3rd arguement, the existing passwd entry.Todd C. Miller
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.
2004-04-11Crank max ptys to 992. We now have 62 pty/tty pairs for each letterTodd C. Miller
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]*
2004-02-21typoMarc Espie
2004-02-10Add the ptm device to pty(4). By opening /dev/ptm and using the PTMGETTodd C. Miller
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.
2003-12-27o Do not drop unit when printing -100Otto Moerbeek
o Round negative numbers correctly o Do not print fractional valus for byte values ok ian@ henning@
2003-10-22utilties -> utilities; from Jared YanovichJason McIntyre
2003-09-02fix use-after-free for expired passwds; ok deraadt, tdevalMarkus Friedl
2003-07-23move junk (bad code, terrible APIs) to the only program that uses it;Theo de Raadt
millert ok
2003-07-15fix function description in SYNOPSIS;Jason McIntyre
2003-06-26ansi and protosTheo de Raadt
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.Todd C. Miller
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02- section reorderJason McIntyre
- clean up .Xr's
2003-05-23- typosJason McIntyre
- new sentence, new line
2003-05-15New: fmt_scaled() and scan_scaled() convert to and from "human readable"Ian Darwin
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@.
2003-04-02knfTheo de Raadt
2003-04-01Throw an error if the username field is empty; noticed by mpech@Todd C. Miller
2003-03-30more asprintf; millert okTheo de Raadt
2003-03-30asprintf; millert okTheo de Raadt
2003-03-06.Xr typos;Jason McIntyre
ok deraadt@
2002-12-03Crank all library major numbers. Needed due to the fact that weTodd C. Miller
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@
2002-11-24Add HISTORY sectionTodd C. Miller
2002-08-23do not export error_tableTheo de Raadt
2002-07-31mark pw_error() __dead since it exitsTodd C. Miller
2002-06-27%u for uid/gid; millert okTheo de Raadt
2002-06-25Now that we don't have a trailing newline we need to explicitly checkTodd C. Miller
that the first char in the line is not NUL after killing comments.
2002-06-22Use strtok_r() instead of strsep() since the latter treats consecutiveTodd C. Miller
field separators as empty field. This is not what we want for whitespace-delimited fields.
2002-06-21login_fbtab(3) fixes:Todd C. Miller
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.
2002-06-09some -Wall and spaces cleanup, scsi.c left.Federico G. Schwindt
some brave soul should look at it.
2002-05-26pid_t cleanupTheo de Raadt
2002-05-24strlcpy at most 16 characters, so says man pageTheo de Raadt
2002-05-24strlcpy and KNFTheo de Raadt
2002-05-24KNFTheo de Raadt
2002-05-22atexit(3) can fail. handle error accordingly. deraadt okJun-ichiro itojun Hagino
XXX libraries should not use atexit(3) from within, as program can terminate with _exit.
2002-05-01o) start new sentence on a new line;Mike Pechkin
o) always close .Bl tags; o) fix usage of .Xr; millert@ ok
2002-04-30Initial cleanup:Mike Pechkin
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
2002-04-10Clean up after pw_file().Mike Pechkin
millert@ ok deraadt@ ok to commit
2002-02-26mdoc fixes from pjanzenPeter Valchev
2002-02-26rephrase warning; from miodPeter Valchev