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

Commit 4f97fd91 authored by Veeren Mandalia's avatar Veeren Mandalia Committed by Colin Cross
Browse files

init: fix return value for android uid/gid check



Now get_android_id function returns -EINVAL if the uid/gid is not in the list
of android ids. This will allow ueventd to catch invalid ids and report the
error.

Change-Id: I943b04dd64d518891623e1ee2d561b8061af4863
Signed-off-by: default avatarVeeren Mandalia <v.mandalia@sta.samsung.com>
parent b35e36e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ static int get_android_id(const char *id)
    for (i = 0; i < ARRAY_SIZE(android_ids); i++)
        if (!strcmp(id, android_ids[i].name))
            return android_ids[i].aid;
    return 0;
    return -1;
}

void set_device_permission(int nargs, char **args)