summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getopt.c
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2009-12-01 05:04:31 +0000
committergreen <green@FreeBSD.org>2009-12-01 05:04:31 +0000
commit32cc2b56a77bafdbaa36b298213654cc42281683 (patch)
tree4dd69d3b32100a3a44a49bb2deca1681144fe2ab /lib/libc/stdlib/getopt.c
parentdbccfb34d9a4442db60f517065d3c3f6596eb745 (diff)
downloadFreeBSD-src-32cc2b56a77bafdbaa36b298213654cc42281683.zip
FreeBSD-src-32cc2b56a77bafdbaa36b298213654cc42281683.tar.gz
Do not gratuitously fail *env(3) operations due to corrupt ('='-less)
**environ entries. This puts non-getenv(3) operations in line with getenv(3) in that bad environ entries do not cause all operations to fail. There is still some inconsistency in that getenv(3) in the absence of any environment-modifying operation does not emit corrupt environ entry warnings. I also fixed another inconsistency in getenv(3) where updating the global environ pointer would not be reflected in the return values. It would have taken an intermediary setenv(3)/putenv(3)/unsetenv(3) in order to see the change.
Diffstat (limited to 'lib/libc/stdlib/getopt.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud