Fix ASSUME_ALWAYS_YES not being parsed properly from config after UCL conversion.

Sponsored by:	EMC / Isilon Storage Division
MFC after:	1 week
This commit is contained in:
bdrewery 2014-03-14 17:37:38 +00:00
parent 6540958349
commit bea222febe

View File

@ -594,6 +594,10 @@ config_parse(ucl_object_t *obj, pkg_conf_file_t conftype)
next);
}
break;
case PKG_CONFIG_BOOL:
temp_config[i].value =
strdup(ucl_object_toboolean(cur) ? "yes" : "no");
break;
default:
/* Normal string value. */
temp_config[i].value = strdup(ucl_object_tostring(cur));