diff options
-rw-r--r-- | libs/rpcd-mod-luci/src/luci.c | 2 |
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); } |