summaryrefslogtreecommitdiff
path: root/lib/libutil
AgeCommit message (Collapse)Author
2007-11-19copy in FILES from pw_lock.3 to vipw.8: as nick points out, it should atJason McIntyre
least document /etc/ptmp; while i'm at it, might as well tidy it up and make it consistent across these pages;
2007-09-09comment inside commentTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-16Make it clear, that the line returned does not have aMoritz Jodeit
trailing newline in contrast to fgetln(3). ok ray@ jmc@ millert@
2007-03-20remove some bogus *p from charles longeauTed Unangst
ok deraadt millert
2007-02-06fix some dodgy displays;Jason McIntyre
2006-12-20Don't use err as labels or variables, especially since we includeRay Lai
err.h. OK moritz@ and jaredy@.
2006-12-17Always write errno on pw_lock failure so it can be relied on.Ray Lai
Mention errno, pw_file, and pw_init in pw_lock man page. OK jmc@, otto@, millert@, and deraadt@.
2006-10-02Fix off by one comparison. FSMAXTYPES is the last valid index intoKenneth R Westerback
fstypesnames[], but that entry is NULL. The last valid file system name is at fstypesnames[FSMAXTYPES-1]. Encountered and diagnosed by pedro@. ok pedro@ deraadt@
2006-06-14Nuke only two uses of OPENDEV_DRCT in tree. Nuke OPENDEV_DRCT. LongKenneth R Westerback
marked obsolete since the opendev() behaviour it turned on is now the default. 'it can go' deraadt@ 'no API of mine has ever made it into a standard' downsj@
2006-04-02getting to the bottom of the issues. sprinkle a few casts that willTheo de Raadt
actually help us find bugs later (with lint, not cc), if they get introduced
2006-03-30casts that cannot cause breakage in the futureTheo de Raadt
2006-03-30change internal login_protect() API to use mode_t like it shouldTheo de Raadt
2006-03-30please lint (without making anything else worse)Theo de Raadt
2005-11-28spaces, and a off_t typecast to please lintTheo de Raadt
2005-11-24use WANTLINT= (on all architectures)Theo de Raadt
2005-10-19library routines should not be checking for NULL pointers passed in,Theo de Raadt
and then setting errno to EFAULT. that is balony programming! they should keep stumbling along to purposely create a crash, so that the programmer stops doing that kind of stupid crap. ok otto
2005-10-12add uu_lock_txfr to .Nm list;Jason McIntyre
2005-08-02scrape $Id$ tags.Marc Espie
okay deraadt@, millert@, krw@
2005-07-29O_EXLOCK stuff was introduced in June 1997, and backed out again inJason McIntyre
November of that year; however, the corresponding man changes were never backed out. do that now, reversing -r1.3 of this file; original pr and diff from peter philipp (this commit closes pr #4309); i chose to revert -r1.3 rather than accept the new wording from peter; thanks jaredy@ for tracking all this down, and supplying the ok...
2005-03-09Fix rounding of fractionless numbers. ok tom@ miod@Otto Moerbeek
2005-03-08Fix sizing of fraction. ok tom@ deraadt@Otto Moerbeek
2005-03-07use .Pq rather than .Po/.Pc;Jason McIntyre
2005-03-03Make sure we check snprintf return value for failure or truncation beforeChad Loder
using it. Make uu_lock_txfr work by properly checking return value from put_pid(). Fix an FD leak on the lockfile in an error path (from FreeBSD with modifications). OK millert@, input from otto@ and Bruno Rohee.
2004-11-25update FILES;Jason McIntyre
fixes pr #3998; diff from frank denis, though slightly different fix committed; help and ok millert@
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