/* Look for flags in a provided list and failing that the static list  */
static int env_flags_lookup(const char *flags_list, const char *name, char *flags)
/* Look for flags in a provided list and failing that the static list  */
static int env_flags_lookup(const char *flags_list, const char *name, char *flags)
{
	int ret = 1;
	if (!flags)
		return -1;
	if (flags_list)
		ret = env_attr_lookup(flags_list, name, flags);
	if (ret != 0)
		ret = env_attr_lookup(ENV_FLAGS_LIST_STATIC, name, flags);
	return ret;
}