diff --git a/WHATS_NEW b/WHATS_NEW index 5bf9ec486..ce1a307a2 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.94 - ==================================== + Check for errors in _init_tags() during config loading. Always check result of _set_vg_name() in lvcreate. Drop unused call to uname() during clvmd initialization. Test allocation result in sysfs filter creation. diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c index 3c97aafa1..d4284d53f 100644 --- a/lib/commands/toolcontext.c +++ b/lib/commands/toolcontext.c @@ -532,9 +532,10 @@ static int _load_config_file(struct cmd_context *cmd, const char *tag) dm_list_add(&cmd->config_files, &cfl->list); out: - if (*tag) - _init_tags(cmd, cfl->cft); - else + if (*tag) { + if (!_init_tags(cmd, cfl->cft)) + return_0; + } else /* Use temporary copy of lvm.conf while loading other files */ cmd->cft = cfl->cft;