Fix android_id_from_name to accept "app_0" as a valid ID.
This fixes getpwnam and getpwgrp which returned NULL for "app_0". "app_0" corresponds to uid/gid 10000 and is perfectly valid.
This commit is contained in:
parent
5c734644ee
commit
1dcf07a84c
@ -185,7 +185,7 @@ app_id_from_name( const char* name )
|
||||
goto FAIL;
|
||||
|
||||
id = strtoul(name+4, &end, 10);
|
||||
if (id == 0 || *end != '\0')
|
||||
if (*end != '\0')
|
||||
goto FAIL;
|
||||
|
||||
id += AID_APP;
|
||||
|
Loading…
x
Reference in New Issue
Block a user