@cryptotaxi247 / netdata-1 / commits / 143e33e08

treat DT_UNKNOWN files as regular files (#4898)

Costa Tsaousis committed Dec 3, 2018 at 05:20 UTC 143e33e08645675625dbdcb7b866562ed6efbef3
1 file changed +2 -2
libnetdata/libnetdata.c
+2 -2
@@ -1380,7 +1380,7 @@ void recursive_config_double_dir_load(const char *user_path, const char *stock_p
1380 continue;
1381 }
1382 }
1383 - else if(de->d_type == DT_REG || de->d_type == DT_LNK) {
1383 + else if(de->d_type == DT_UNKNOWN || de->d_type == DT_REG || de->d_type == DT_LNK) {
1384 size_t len = strlen(de->d_name);
1385 if(path_is_file(udir, de->d_name) &&
1386 len > 5 && !strcmp(&de->d_name[len - 5], ".conf")) {
@@ -1428,7 +1428,7 @@ void recursive_config_double_dir_load(const char *user_path, const char *stock_p
1428 continue;
1429 }
1430 }
1431 - else if(de->d_type == DT_REG || de->d_type == DT_LNK) {
1431 + else if(de->d_type == DT_UNKNOWN || de->d_type == DT_REG || de->d_type == DT_LNK) {
1432 size_t len = strlen(de->d_name);
1433 if(path_is_file(sdir, de->d_name) && !path_is_file(udir, de->d_name) &&
1434 len > 5 && !strcmp(&de->d_name[len - 5], ".conf")) {