instance: use mkdir_p helper main master
authorDaniel Golle <daniel@makrotopia.org>
Sat, 14 Feb 2026 20:43:13 +0000 (20:43 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 14 Feb 2026 21:16:47 +0000 (21:16 +0000)
commit180ffccf79d1a1a2c3eb644e26f6d87b1cbcfffd
tree0b4f98ada352387c4a097c1e1093f05a007dd49c
parent9493a3dcb48b9b3e197e9edfc37304fcd1b5acae
instance: use mkdir_p helper

Use mkdir_p() libubox helper function to create cgroup instance
directories. This simplifies instance_add_cgroup() and also avoids
returning an error in case the service directory already exists.

Fixes: openwrt/procd#31
Fixes: 7e5b324 ("instance: check length of names when creating cgroups")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
service/instance.c