Some config parsing fixes

This commit is contained in:
Vitaliy Filippov
2021-05-01 00:20:01 +03:00
parent 6810e93c3f
commit 818ae5d61d
4 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -525,7 +525,8 @@ json11::Json osd_messenger_t::read_config(const json11::Json & config)
int fd = open(config_path, O_RDONLY);
if (fd < 0)
{
fprintf(stderr, "Error reading %s: %s\n", config_path, strerror(errno));
if (errno != ENOENT)
fprintf(stderr, "Error reading %s: %s\n", config_path, strerror(errno));
return config;
}
struct stat st;