X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=package%2Fsystem%2Fprocd%2Ffiles%2Fprocd.sh;h=c23c37b83f00d790a97d38c53ea9a39e0cfcc504;hp=00d754d16ff0321ab46519a5f566fd966f69b508;hb=7a423c389a162d2945901f0b5e7c604d36c64526;hpb=12930fc0453ac019e3f9a9cde50699914f7ba1d0 diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh index 00d754d16f..c23c37b83f 100644 --- a/package/system/procd/files/procd.sh +++ b/package/system/procd/files/procd.sh @@ -423,7 +423,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 json_add_string "" "$txt"; done json_select .. } json_select .. @@ -432,7 +432,7 @@ procd_add_mdns_service() { procd_add_mdns() { procd_open_data json_add_object "mdns" - procd_add_mdns_service $@ + procd_add_mdns_service "$@" json_close_object procd_close_data }