procd fix

Paul D newtwen at gmail.com
Mon Mar 18 07:21:55 PDT 2024


Maybe needs Rafał Miłecki <rafal at milecki.pl> approval?


=======

diff --git a/package/system/procd/files/procd.sh 
b/package/system/procd/files/procd.sh
index 8ee25f4f08b47..9d936bb7e9778 100644
--- a/package/system/procd/files/procd.sh
+++ b/package/system/procd/files/procd.sh
@@ -601,7 +601,7 @@ procd_add_mdns_service() {
  	json_add_int port "$port"
  	[ -n "$1" ] && {
  		json_add_array txt
-		for txt in "$@"; do json_add_string "" "$txt"; done
+		for txt in "$@"; do [ -n "$txt" ] && json_add_string "" "$txt"; done
  		json_select ..
  	}
  	json_select ..




=======


PR at https://github.com/openwrt/openwrt/pull/14597/



More information about the openwrt-devel mailing list