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:
David 'Digit' Turner 2010-02-12 11:35:38 -08:00
parent 5c734644ee
commit 1dcf07a84c

View File

@ -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;