commit | 1dcf07a84c93a0095875f2d2087bfe7bfb66a413 | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@google.com> | Fri Feb 12 11:35:38 2010 -0800 |
committer | David 'Digit' Turner <digit@google.com> | Fri Feb 12 11:35:38 2010 -0800 |
tree | 21d5731774d25a54186f8e60230e20c99f459de0 | |
parent | 5c734644eebf8d01be1e86cbe20a111a5c5a2738 [diff] [blame] |
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.
diff --git a/libc/bionic/stubs.c b/libc/bionic/stubs.c index 586d497..d495674 100644 --- a/libc/bionic/stubs.c +++ b/libc/bionic/stubs.c
@@ -185,7 +185,7 @@ goto FAIL; id = strtoul(name+4, &end, 10); - if (id == 0 || *end != '\0') + if (*end != '\0') goto FAIL; id += AID_APP;