summaryrefslogtreecommitdiffstats
path: root/libnetdata/libnetdata.c
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@tsaousis.gr>2018-12-03 05:20:05 +0200
committerGitHub <noreply@github.com>2018-12-03 05:20:05 +0200
commit143e33e08645675625dbdcb7b866562ed6efbef3 (patch)
tree383ef5a87909b9acff96b1bd2577a42e1b4d4a81 /libnetdata/libnetdata.c
parent94f829e96b1ff51f50953560c095adc4c4a355e8 (diff)
treat DT_UNKNOWN files as regular files (#4898)
Diffstat (limited to 'libnetdata/libnetdata.c')
-rw-r--r--libnetdata/libnetdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libnetdata/libnetdata.c b/libnetdata/libnetdata.c
index 0d708693c3..3972052a3a 100644
--- a/libnetdata/libnetdata.c
+++ b/libnetdata/libnetdata.c
@@ -1380,7 +1380,7 @@ void recursive_config_double_dir_load(const char *user_path, const char *stock_p
continue;
}
}
- else if(de->d_type == DT_REG || de->d_type == DT_LNK) {
+ else if(de->d_type == DT_UNKNOWN || de->d_type == DT_REG || de->d_type == DT_LNK) {
size_t len = strlen(de->d_name);
if(path_is_file(udir, de->d_name) &&
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
continue;
}
}
- else if(de->d_type == DT_REG || de->d_type == DT_LNK) {
+ else if(de->d_type == DT_UNKNOWN || de->d_type == DT_REG || de->d_type == DT_LNK) {
size_t len = strlen(de->d_name);
if(path_is_file(sdir, de->d_name) && !path_is_file(udir, de->d_name) &&
len > 5 && !strcmp(&de->d_name[len - 5], ".conf")) {