The service_start_early() function uses strtok() on the command line argument,
therfore we cannot pass it constant string literals directly.
Fixes OpenWrt bug #14832
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
static void state_enter(void)
{
+ char ubus_cmd[] = "/sbin/ubusd";
switch (state) {
case STATE_EARLY:
LOG("- init -\n");
service_init();
- service_start_early("ubus", "/sbin/ubusd");
+ service_start_early("ubus", ubus_cmd);
procd_inittab();
procd_inittab_run("respawn");