Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Check for duplicate variables in the environment when setting a value | millert | 2010-08-23 | 1 | -7/+19 |
| | | | | via setenv() or putenv(). OK miod@ | ||||
* | Make unsetenv(NULL) and unsetenv("") give EINVAL, per POSIX. ok deraadt@ | naddy | 2010-06-29 | 1 | -1/+5 |
| | |||||
* | Don't assume that we can overwrite strings in the environment. | millert | 2009-06-04 | 1 | -1/+3 |
| | | | | | Someone may have passed a read-only string to putenv() (I'm looking at you cron!). | ||||
* | Make putenv(), setenv() and unsetenv() standards compliant. The | millert | 2009-06-03 | 1 | -11/+68 |
| | | | | | | standard explicitly disallows passing setenv a name with a '=' in it but historic BSD behavior is to allow this but to ignore the '=' and anything after it. | ||||
* | zap remaining rcsid. | espie | 2005-08-08 | 1 | -4/+1 |
| | | | | | | Kill old files that are no longer compiled. okay theo | ||||
* | ansi + de-register | pat | 2005-03-30 | 1 | -7/+3 |
| | | | | ok otto deraadt | ||||
* | Stash the environment pointer we get from realloc() instead of just | millert | 2005-02-16 | 1 | -32/+24 |
| | | | | | | | | setting a flag. That way when we are called again we can be sure to realloc() the right thing, regardless of the current value of environ. When the stashed value != environ (or when we are called for the first time), copy the existing entries from environ and set environ to the new value. OK deraadt@, beck@, djm@ | ||||
* | Remove the advertising clause in the UCB license which Berkeley | millert | 2003-06-02 | 1 | -6/+2 |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | use proper __findenv() prototype; millert@ ok | mickey | 2002-12-10 | 1 | -2/+3 |
| | |||||
* | a first pass at -Wall | deraadt | 2001-07-09 | 1 | -3/+4 |
| | |||||
* | Don't override environ if realloc() fails. Pointed out by | millert | 1998-02-02 | 1 | -3/+4 |
| | | | | Dave Bodenstab <imdave@mcs.net> | ||||
* | Fix RCS ids | tholo | 1996-08-19 | 1 | -2/+1 |
| | | | | Make sure everything uses {SYS,}LIBC_SCCS properly | ||||
* | initial import of NetBSD tree | deraadt | 1995-10-18 | 1 | -0/+120 |