blob: 08fd70dd60fefa835802149d56cb7ca7f4c5ad91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- bmon/src/in_sysfs.c
+++ bmon/src/in_sysfs.c
@@ -164,7 +164,7 @@
quit("Failed to open directory %s: %s\n", topdir, strerror(errno));
while ((de = readdir(d))) {
- if (de->d_type == DT_DIR && de->d_name[0] != '.') {
+ if ((de->d_type == DT_DIR || de->d_type == DT_LNK) && de->d_name[0] != '.') {
char p[FILENAME_MAX];
snprintf(p, sizeof(p), "%s/%s/statistics",
|