summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2022-06-28 16:39:26 +0200
committerGitHub <noreply@github.com>2022-06-28 16:39:26 +0200
commit18cdb4c02858dca2ca2c3fef126f8631bfb1a80e (patch)
tree4e443735c4b6e2916537f36995dd02232cf18c14 /libs
parentfd72e1c23ef1569fd8f8ab71bdcb4a94f802435a (diff)
parent77d29c9dc0226faa9374ca25fba8dc642c99f303 (diff)
Merge pull request #5855 from plappermaul/master
rpcd-mod-luci: filter bonding_masters
Diffstat (limited to 'libs')
-rw-r--r--libs/rpcd-mod-luci/src/luci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/rpcd-mod-luci/src/luci.c b/libs/rpcd-mod-luci/src/luci.c
index ff656ec212..131180a750 100644
--- a/libs/rpcd-mod-luci/src/luci.c
+++ b/libs/rpcd-mod-luci/src/luci.c
@@ -849,7 +849,7 @@ rpc_luci_get_network_devices(struct ubus_context *ctx,
if (e == NULL)
break;
- if (strcmp(e->d_name, ".") && strcmp(e->d_name, ".."))
+ if (e->d_type != DT_DIR && e->d_type != DT_REG)
rpc_luci_parse_network_device_sys(e->d_name, ifaddr);
}