]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
global/global_init.cc global_pre_init: look for ENOENT
authorDan Mick <dan.mick@redhat.com>
Tue, 25 Apr 2017 06:34:27 +0000 (23:34 -0700)
committerDan Mick <dan.mick@redhat.com>
Tue, 25 Apr 2017 06:34:27 +0000 (23:34 -0700)
EINVAL for no conf file found changes to ENOENT

Signed-off-by: Dan Mick <dan.mick@redhat.com>
src/global/global_init.cc

index 88a6739e131fcb5fbeaaec59d9f0b791913c90cd..a8833c5eb19c598af1864080db53d3b058847308 100644 (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;