Merge pull request #5855 from plappermaul/master

rpcd-mod-luci: filter bonding_masters
This commit is contained in:
Florian Eckert 2022-06-28 16:39:26 +02:00 committed by GitHub
commit 18cdb4c028
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}