Commit Graph

8 Commits

Author SHA1 Message Date
lukem
a767f5ec9c getpw*_r() may return 0 and set pwd==NULL 2005-04-19 03:38:08 +00:00
christos
fffc26d436 Use getpwuid_r, KNF. From John Nemeth, many thanks. 2005-04-01 12:51:07 +00:00
agc
eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
lukem
b48252f365 * 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
1999-09-16 11:44:54 +00:00
mycroft
965a95625c Copy into a local buffer rather than using the getpw*() buffer. 1998-07-26 19:31:35 +00:00
perry
741740203c remove obsolete register declarations 1998-02-03 18:49:08 +00:00
lukem
e37aec676a rcsid facism, WARNSify 1997-10-09 10:20:07 +00:00
cgd
74c187c292 update 1994-05-06 06:25:33 +00:00