global/global_init.cc global_pre_init: look for ENOENT

EINVAL for no conf file found changes to ENOENT

Signed-off-by: Dan Mick <dan.mick@redhat.com>
This commit is contained in:
Dan Mick 2017-04-24 23:34:27 -07:00
parent 96f95193f6
commit 9a5954fc66

View File

@ -105,7 +105,7 @@ void global_pre_init(std::vector < const char * > *alt_def_args,
dout_emergency("global_init: error parsing config file.\n");
_exit(1);
}
else if (ret == -EINVAL) {
else if (ret == -ENOENT) {
if (!(flags & CINIT_FLAG_NO_DEFAULT_CONFIG_FILE)) {
if (conf_file_list.length()) {
ostringstream oss;