<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/stdlib/setenv.c, branch OPENBSD_6_8_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2016-09-21T04:38:56+00:00</updated>
<entry>
<title>Delete casts to off_t and size_t that are implied by assignments</title>
<updated>2016-09-21T04:38:56+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2016-09-21T04:38:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4f42c802703f53d8169bb55766b44a362a136d7c'/>
<id>urn:sha1:4f42c802703f53d8169bb55766b44a362a136d7c</id>
<content type='text'>
or prototypes.  Ditto for some of the char* and void* casts too.

verified no change to instructions on ILP32 (i386) and LP64 (amd64)
ok natano@ abluhm@ deraadt@ millert@
</content>
</entry>
<entry>
<title>Allow setenv(3) and putenv(3) to operate on a NULL environ pointer.</title>
<updated>2016-04-25T21:36:04+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2016-04-25T21:36:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=baeeab2cbccd4d08a37d92c62ca5f237ea8e7dc6'/>
<id>urn:sha1:baeeab2cbccd4d08a37d92c62ca5f237ea8e7dc6</id>
<content type='text'>
The getenv(3) and unsetenv(3) functions already support this.
This will make it easier to emulate the glibc clearenv() function in ports.
Based on a diff from and OK jca@
</content>
</entry>
<entry>
<title>environ and __progname are not declared in a public header; declare them</title>
<updated>2016-03-13T18:34:21+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2016-03-13T18:34:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8e31f7b09b8e135e165df08a971ac10c71f4d29a'/>
<id>urn:sha1:8e31f7b09b8e135e165df08a971ac10c71f4d29a</id>
<content type='text'>
in libc's hidden/stdlib.h instead of in each .c file that needs one

ok deraadt@ gsoares@ mpi@
</content>
</entry>
<entry>
<title>Wrap &lt;stdlib.h&gt; so that calls go direct and the symbols not in the</title>
<updated>2015-09-13T08:31:48+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2015-09-13T08:31:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e85bde5645a66155108c2a88d25fa62993a3f2bb'/>
<id>urn:sha1:e85bde5645a66155108c2a88d25fa62993a3f2bb</id>
<content type='text'>
C standard are all weak.
Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the
arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
</content>
</entry>
<entry>
<title>using reallocarray() gives us multiplicative integer overflow checking</title>
<updated>2014-10-08T05:33:31+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2014-10-08T05:33:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d1aebe19824d65f2950bada1883ba29804d12b34'/>
<id>urn:sha1:d1aebe19824d65f2950bada1883ba29804d12b34</id>
<content type='text'>
in case something wants to create massive amounts of environment, like
a bit more than 1/4 of a 32-bit address space.  unrealistic -- but why
audit one code path, and not treat others the same?  then you have to
re-engage everytime you see the code.  read the news, that isn't what
developers do.  At least if the code paths look the same, there is hope,
because they are easier to verify for correctness.  developers need
to give other developers a chance to want to care.
</content>
</entry>
<entry>
<title>Make setenv(3) consistent with unsetenv(3), giving EINVAL if passed</title>
<updated>2012-09-23T16:08:04+00:00</updated>
<author>
<name>jeremy</name>
<email></email>
</author>
<published>2012-09-23T16:08:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=be49cd9e087c09cea5ec0276d663efd8564fa0d5'/>
<id>urn:sha1:be49cd9e087c09cea5ec0276d663efd8564fa0d5</id>
<content type='text'>
an empty name, NULL pointer, or a name containing an '=' character.

OK millert@, guenther@
</content>
</entry>
<entry>
<title>Check for duplicate variables in the environment when setting a value</title>
<updated>2010-08-23T22:31:50+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2010-08-23T22:31:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1e367116e85e839002afc69614bb7d21565126b6'/>
<id>urn:sha1:1e367116e85e839002afc69614bb7d21565126b6</id>
<content type='text'>
via setenv() or putenv().  OK miod@
</content>
</entry>
<entry>
<title>Make unsetenv(NULL) and unsetenv("") give EINVAL, per POSIX.  ok deraadt@</title>
<updated>2010-06-29T04:09:34+00:00</updated>
<author>
<name>naddy</name>
<email></email>
</author>
<published>2010-06-29T04:09:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ea27549635fddb5047499ce46c454d3acfe0df83'/>
<id>urn:sha1:ea27549635fddb5047499ce46c454d3acfe0df83</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't assume that we can overwrite strings in the environment.</title>
<updated>2009-06-04T20:39:13+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2009-06-04T20:39:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b77bc4fc41b396fdfad2c3601e64aa26f6c0ed7f'/>
<id>urn:sha1:b77bc4fc41b396fdfad2c3601e64aa26f6c0ed7f</id>
<content type='text'>
Someone may have passed a read-only string to putenv() (I'm looking
at you cron!).
</content>
</entry>
<entry>
<title>Make putenv(), setenv() and unsetenv() standards compliant.  The</title>
<updated>2009-06-03T15:52:16+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2009-06-03T15:52:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2fbee47dd731557e4c361a39c72b272faeeefe8d'/>
<id>urn:sha1:2fbee47dd731557e4c361a39c72b272faeeefe8d</id>
<content type='text'>
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.
</content>
</entry>
</feed>
