]> git.ipfire.org Git - thirdparty/ccache.git/commit
Fail if boolean env vars are set with common negative strings
authorMostyn Bramley-Moore <mostyn@antipode.se>
Fri, 23 Jun 2017 18:20:54 +0000 (20:20 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 30 Jan 2018 20:13:39 +0000 (21:13 +0100)
commite7906f4682f4a56e1cfca7581845a7e0b5b7ce65
tree54622f59790dd5cf0f48b415de431f1021e03bbb
parent1fbb9be608dab1771eb7cd9bd62393b7cc87f45a
Fail if boolean env vars are set with common negative strings

Boolean environment variables have strange semantics: if the variable
is set then the configuration setting is considered "true".  This means
users can easily be mistaken that eg CCACHE_DISABLE=false means that
the "disable" setting is set to false.

To avoid too much backwards-incompatibility, we now exit with an error if
some common negative-sounding (case-insensitive) values:
"0", "false", "disable", "no".

All other values (including the empty string) are still considered to mean
"true".

Resolves https://github.com/ccache/ccache/issues/182
MANUAL.txt
NEWS.txt
conf.c
test/suites/base.bash