From 95a84c0c4369cfaad6b67961b2c5e6be0870f528 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 1 Apr 2026 13:11:14 +0200 Subject: [PATCH] luci-base: fix ubus getFeatures() crash OpenWrt versions that provide odhcpd versions reporting a compile time features line in their help output trigger a crash in the getFeatures() procedure (attempt to set property on boolean value) - fix this issue by not predeclaring the odhcpd flag as `false`. Fixes: #8489 Fixes: 0529dca7a2 ("luci-base: fix feature detection patterns") Signed-off-by: Jo-Philipp Wich --- modules/luci-base/root/usr/share/rpcd/ucode/luci | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/luci-base/root/usr/share/rpcd/ucode/luci b/modules/luci-base/root/usr/share/rpcd/ucode/luci index 511853cd71..ca95ded897 100644 --- a/modules/luci-base/root/usr/share/rpcd/ucode/luci +++ b/modules/luci-base/root/usr/share/rpcd/ucode/luci @@ -291,7 +291,6 @@ const methods = { fd.close(); } - result.odhcpd = false; fd = popen('odhcpd -h 2>/dev/null'); if (fd) {