History log of /src/lib/libc/gen/pw_scan.c |
Revision | | Date | Author | Comments |
1.23 |
| 13-Mar-2012 |
christos | PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds)
approved by core@
|
1.22 |
| 29-Jan-2009 |
enami | branches: 1.22.8; Put back rev. 1.20 so that nbpwd_mkdb built on 32bit time_t host generates correct pwd.db.
|
1.21 |
| 11-Jan-2009 |
christos | merge christos-time_t
|
1.20 |
| 01-Feb-2005 |
christos | branches: 1.20.34; Avoid passing in the actual pw field in gettime because it might not be the type that we think it is. Fixes cross builds.
|
1.19 |
| 20-Jan-2005 |
christos | change long -> unsigned long
|
1.18 |
| 20-Jan-2005 |
christos | remove debugging printf.
|
1.17 |
| 19-Jan-2005 |
christos | Improve error messages.
|
1.16 |
| 19-Jan-2005 |
christos | - fix initialization of dowarn [use before set, thanks luke] - always initialize flags so that we don't have to check for it. - use the consistent variable names in functions.
|
1.15 |
| 19-Jan-2005 |
christos | - test for too long username (from Greg Woods) - centralize id and time_t parsing, providing better error checking of numeric values; previously the code would accept 12foo as an expiration or change time. - fix issue with dereferencing null flags in compat code. - ansify, KNF
|
1.14 |
| 11-Dec-2004 |
christos | fix cast-qual issue.
|
1.13 |
| 27-Oct-2003 |
lukem | Overhaul how `build.sh tools' are used:
* Rename "config.h" to "nbtool_config.h" and HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H. This makes in more obvious in the source when we're using tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before <sys/cdefs.h> so that the former can provide __RCSID() (et al), and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding: #if HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h" #endif to the top of the source files (for the general case).
|
1.12 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
|
1.11 |
| 29-Jan-2002 |
tv | Make almost all tools compile and run properly on non-NetBSD hosts. (In particular, most tools now run correctly on Solaris 7.)
|
1.10 |
| 20-Sep-1999 |
lukem | branches: 1.10.10; back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. _DIAGASSERT() is still retained.
|
1.9 |
| 16-Sep-1999 |
lukem | * use _DIAGASSERT() to check pointer arguments against NULL and file descriptors against -1 (as appropriate). * add actual checks which to detect stuff that would trigger_DIAGASSERT(), and attempt to return a sane error condition. * knf some code * remove some `register' decls.
the first two items result in the addition of code similar to the following in various functions:
_DIAGASSERT(path != NULL) #ifdef _DIAGNOSTIC if (path == NULL) { errno = EFAULT; return (-1); } #endif
|
1.8 |
| 13-Nov-1998 |
christos | delint
|
1.7 |
| 14-Oct-1998 |
kleink | Kill __LIBUTIL_BUILD in favor of the newly added _LIBC indicator completely; suggested by Jason Thorpe.
|
1.6 |
| 14-Oct-1998 |
kleink | Do the internal symbol renaming dance only if inside the libc build environment so libutil won't be affected; noticed by Alistair Crooks and Allen Briggs.
|
1.5 |
| 13-Oct-1998 |
kleink | Need an internal name for strsep().
|
1.4 |
| 26-Jul-1998 |
mycroft | const poisoning.
|
1.3 |
| 26-Jul-1998 |
mycroft | const poisoning.
|
1.2 |
| 27-Jun-1998 |
thorpej | Fix a serious symbol collision problem introduced when pw_scan() was added to libc. Note, pw_scan() is NO LONGER exported from libc (it never should have been, and we're just going to pretend like it never was).
|
1.1 |
| 08-Jun-1998 |
lukem | * move pw_scan() from libutil to libc * add support for YP "master.passwd.by*" (master.passwd in YP, including pw_passwd) and "passwd.adjunct.by*" (SunOS `secure' maps (?)), based on code in FreeBSD and partially from OpenBSD. this is only used if euid == 0. with this, the YP "passwd.by*" maps can have `*' in the pw_passwd field. * use pw_scan() to parse YP "passwd.by*" and "master.passwd.by*" entries
XXX: i didn't test the "passwd.adjunct" support...
|
1.10.10.2 |
| 22-Mar-2002 |
nathanw | Catch up to -current.
|
1.10.10.1 |
| 08-Mar-2002 |
nathanw | Catch up to -current.
|
1.20.34.1 |
| 28-Dec-2008 |
christos | Avoid unconst and use time_t conversions directly.
|
1.22.8.1 |
| 17-Apr-2012 |
yamt | sync with head
|