Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd0e3162 authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

init: expand_props on trigger

Bug: 19608716
Change-Id: Ifce8bfde04f8e6f707245e0b53400072d94447b2
parent 3464c77b
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -591,7 +591,13 @@ int do_powerctl(int nargs, char **args)

int do_trigger(int nargs, char **args)
{
    action_for_each_trigger(args[1], action_add_queue_tail);
    char prop_val[PROP_VALUE_MAX];
    int res = expand_props(prop_val, args[1], sizeof(prop_val));
    if (res) {
        ERROR("trigger: cannot expand '%s'\n", args[1]);
        return -EINVAL;
    }
    action_for_each_trigger(prop_val, action_add_queue_tail);
    return 0;
}