/* Read an environment variable as a boolean Return -1 if variable does not exist (default to true)  */
int env_get_yesno(const char *var)
/* Read an environment variable as a boolean Return -1 if variable does not exist (default to true)  */
int env_get_yesno(const char *var)
{
	char *s = env_get(var);
	if (s == NULL)
		return -1;
	return (*s == '1' || *s == 'y' || *s == 'Y' || *s == 't' || *s == 'T') ?
		1 : 0;
}