summaryrefslogtreecommitdiff
path: root/lib/libutil
AgeCommit message (Collapse)Author
2006-09-02Slight wording improvement, sort SEE ALSO, remove trailing dot in SEE ALSO.wiz
2006-08-28make this compilable as a tool.christos
2006-08-26Only use __RCSID if we have it.christos
2006-08-26Efun source.christos
2006-08-26Add efun(3)christos
2006-05-26mention error return value, like getrawpartition(3)drochner
2006-05-25\- is a minus.wiz
2006-05-25Document that this can fail.christos
2006-04-01Allow explicit length by checking it only if we have a length above 0.elad
2006-03-30set all fields to -1 after allocation, this makes it easier to writeelad
policies.
2006-03-23Consistently use .Va for errno. Quote "-" for PostScript output.wiz
2006-03-23Remove trailing whitespace, add 'and' in enumeration.wiz
2006-03-20plug leaks, coverity cids 1618, 1619.elad
2006-03-19Set errno on failure, and man-page updates.elad
2006-03-19- Don't trash error number returned by the handler; return it instead.christos
- Add default cases and return EINVAL - Don't check for NULL arguments and return EFAULT. Let it core-dump instead. (or add DIAGASSERT) - Coverity CID 799: Don't dereference m and n if they are known to be NULL. Bail out sooner with EINVAL.
2006-03-19Clarify errno's returned by those functions.christos
2006-03-19Coverity CID 1209: Avoid negative close. While I am there fix bugs (openchristos
returning 0 is ok). Reorganize code to factor out common parts, cleanup syscall checking and error code return.
2006-02-24Fix typo.wiz
2006-02-24Mark up NULL (with Dv).wiz
2006-02-19needs assert.h to compile.elad
2006-02-19add _DIAGASSERT as requested by mrg@.elad
2006-02-18When loading a policy with an "nclasses" option, always set the min/maxelad
values for the various character classes to allow any number, just in case. Also note about that in the man-page. This makes it easier to use the "nclasses" option. Note that alternatively we could just memset() to 0xff when doing the load, but that might lead to more unexpected behavior.
2006-02-18Don't expose struct pw_policy and use pw_policy_t, use malloc, man-pageelad
fixups. As discussed on source-changes@. Okay yamt@, thorpej@.
2006-02-18Some stuff that's been sitting in my tree for too long...elad
Improve the pw_policy(3) API by splitting it to two functions, one to load the policy from /etc/passwd.conf and another to test passwords against the policy. Some bug fixes, more consistent code, and man-page updates. Minor for libutil bumped.
2005-12-20make setuserenv and setuserpath take an environment setting function andchristos
an environment pointer and expose them. bump version.
2005-09-17Lint warnings.elad
2005-09-16Rename struct pw_policy -> struct pw_policy_handler.elad
2005-09-14Add pw_policy.3.elad
From Hisashi T Fujinaka, thanks!
2005-09-14Introduce pw_policy(3), an easily extendable way of defining passwordelad
policies and enforcing them in programs. Man-page written with much help and tips from David Maxwell, Hubert Feyrer, and Thomas Klausner. This bumps libutil minor to 7. XXX: Need default policy to go in /etc/passwd.conf, and integration into local/yp/PAM password changing code. PR/10206.
2005-09-14Use the re-entrant getgr*_r functions. From John Nemeth.christos
2005-09-10Avoid duplicate if.wiz
2005-08-27Lint warnings.elad
2005-08-19Make this compile without warnings.elad
2005-08-18Make pw_getconf(3) set errno so we have indication on what went wrong.elad
Document possible errno values in the manpage.
2005-05-16Fix capso in Dd argument.wiz
2005-05-15u_short -> uint16_tthorpej
2005-04-13Bump date for previous; add commas to makewiz
sentences more readable.
2005-04-13Allow for a login.conf file without an explicite "default" classdrochner
definition. The login.conf(5) manpage states that the "default" class is used *if it exists*.
2005-04-09Add the 'A' and 'P' format specifiers which use getaddrinfo(3) to turnatatat
numbers into names (if possible). Also add the '?' format modifier that elides the "N/A" if that's what you would normally get.
2005-01-19If TIOCPTMGET fails, close /dev/ptm.mycroft
2005-01-15PR/28792: FUKAUMI Naoki: passwd: Couldn't generate salt: Invalid argumentchristos
I broke the case where /etc/passwd.conf was empty.
2005-01-13For consistency of sockaddr_snprintf(3) with snprintf(3) anddyoung
snprintb(3), do not count the terminating NUL in the return value. Update the regression tests to match. Approved by christos@.
2005-01-12add pw_getpwconf(), bump.christos
2005-01-08Avoid spinning if writing to a pty returns 0. This happened to me whenchristos
I had a pty with a suspended sshd (why?).
2004-12-20Unbreak setuserpath(); from Nick Hudson.christos
2004-12-11Mmm, API changes without date bumps... bump date for constification.wiz
2004-12-11WARNS=3; fix cast-qual issues.christos
2004-12-11Constify; the api was completely broken before.christos
2004-12-01Add missing LIBRARY section.peter
ok wiz@
2004-11-25Don't give write privileges at all if the tty group is missing.christos