Change-Id: Id18af6a7f8fc0fc36fba66559401ab5125a3099d
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
struct unit_control_decision_maker *dm = container_of(handler,
struct unit_control_decision_maker, eh);
struct unit_control_event *ev = to_unit_control_event(event);
- int ret = -EACCES;
+ int ret = 0;
bool matched = false;
- int error_code = 0;
+ int error_code = 0;
struct whitelist_entry *w;
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
char *service_name;
/* cannot use start with wildcards */
if (!strcmp(ev->method, "start") && strstr(ev->unit, "@.")) {
- ret = -ENOTSUP;
+ error_code = -ENOTSUP;
goto cleanup;
}