summaryrefslogtreecommitdiff
path: root/lib/libc/gen/getpwent.c
AgeCommit message (Expand)Author
2015-09-14remove null check before free. from Michael McConvilleTed Unangst
2015-09-13Wrap <pwd.h> so that calls go direct and the symbols are all weak.Philip Guenther
2015-06-03Do not assume that asprintf() clears the pointer on failure, whichTodd C. Miller
2015-01-16Move to the <limits.h> universe.Theo de Raadt
2014-03-12Make sure that setgrent(), endgrent(), and endpwent() do not clobberIngo Schwarze
2014-03-12The functions getpw{nam,uid}_r() no longer set errno, not even if anIngo Schwarze
2014-03-08Fix getpw{nam,uid}{,_r}() errno handling for the non-YP case.Ingo Schwarze
2014-03-05Fix the return values of getpwnam_r(), getpwuid_r(), getgrnam_r(),Ingo Schwarze
2013-11-15getpwnam_r() and getpwuid_r() reopen the passwd even when called withSebastian Benoit
2013-11-12ANSI prototypesTheo de Raadt
2013-08-15Align stack yp buffers to 64-bit boundaries now, for they might containMiod Vallat
2013-03-21Do not need machine/param.hTheo de Raadt
2013-01-07use a size_t instead of an int to avoid signed compareTheo de Raadt
2011-09-05Preserve errno across calls to open the password database(s), soPhilip Guenthe
2009-11-21remove unused variableCharles Longeau
2009-11-12simplify the code looking for + in the password database, after analysisTheo de Raadt
2009-06-03Take advantage of the surprise libc bump to bring inIngo Schwarze
2009-03-27getgrouplist: If YP is #defined and enabled in /etc/group(5) and /etc/netid(5)Ingo Schwarze
2008-07-23Avoid an occasional double free in getpwent() which corrupted memory. ItTheo de Raadt
2008-07-06oops, fix getpwent() use of wrong buffersTheo de Raadt
2008-06-25Add _PW_BUF_LEN define and use it instead of hard-coding 1024 forTodd C. Miller
2008-06-24implement getpwnam_r() and getpwuid_r() -- very nearly a rewrite of theTheo de Raadt
2005-08-08zap remaining rcsid.Marc Espie
2005-03-25deregister (and deauto!). ok millert@ marco@Otto Moerbeek
2004-05-18ansify function definitions and zap some `register'Jean-Francois Brousseau
2003-06-25protosTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2003-05-01add missing enumeration case to select to kill gcc warningAnil Madhavapeddy
2002-11-21Add a "shadow" group and make the shadow passwd db readable by thatTodd C. Miller
2002-07-06KNFTheo de Raadt
2002-07-06cope better if realloc fails; better fix than cloder@acm.orgTheo de Raadt
2002-05-24try to use strlcpy and snprintf more; ok variousTheo de Raadt
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-07-10put another YP-only piece inside the ifdefTheo de Raadt
2001-02-13Avoid theoretical potential buffer overflowPaul Janzen
2001-01-31move utmp to large format, usernames to 32 chars; downsjTheo de Raadt
2000-04-25well if you cannot do a libc commit properly a week before 2.7 tree lock, sur...Theo de Raadt
2000-04-25getpw*_r()David Leonard
1999-09-15redo master.passwd.byname check if either the uid or euid changes, this wasTheo de Raadt
1999-09-14indentTheo de Raadt
1999-09-03Use strtol() and strtoul() instead of atoi(). This allows us to catchTodd C. Miller
1998-08-14realloc repairTheo de Raadt
1998-07-14avoid calling __has_yppw() everytime through getpwent(), by caching the YP st...Theo de Raadt
1997-12-18handle long usernames more carefullyTheo de Raadt
1997-07-23tabifykstailey
1997-04-18constrain length of db lookups better; reported by adam@math.tau.ac.ilTheo de Raadt
1997-04-13buf oflow; bitbltTheo de Raadt
1996-10-16kill __yp_token, other clean ups.Jason Downs
1996-10-15* optimal exclusions support -- don't waste memory with DB. assumesJason Downs