Since commit
557f11b3a20f ("instance: provide error feedback if ujail
binary is missing") worrying log spam of the form "unable to find
/sbin/jail ..." may be encountered.
This corresponds with the changes done in the upstream commit
bcb86554f1b4 ("instance: add 'requirejail' attribute").
Fixes:
557f11b3a20f ("instance: provide error feedback if ujail binary is missing")
Ref: https://forum.openwrt.org/t/openwrt-19-07-2-service-release/57066
Signed-off-by: Petr Štetiar <ynezz@true.cz>
r = stat(UJAIL_BIN_PATH, &s);
if (r < 0) {
- ERROR("unable to find %s: %m (%d)\n", UJAIL_BIN_PATH, r);
+ DEBUG(2, "unable to find %s: %m (%d)\n", UJAIL_BIN_PATH, r);
return 0;
}