diff options
author | David 'Digit' Turner <digit@google.com> | 2010-02-12 11:35:38 -0800 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2010-02-12 11:35:38 -0800 |
commit | 1dcf07a84c93a0095875f2d2087bfe7bfb66a413 (patch) | |
tree | 21d5731774d25a54186f8e60230e20c99f459de0 /libc/bionic/stubs.c | |
parent | 5c734644eebf8d01be1e86cbe20a111a5c5a2738 (diff) | |
download | bionic-1dcf07a84c93a0095875f2d2087bfe7bfb66a413.zip bionic-1dcf07a84c93a0095875f2d2087bfe7bfb66a413.tar.gz bionic-1dcf07a84c93a0095875f2d2087bfe7bfb66a413.tar.bz2 |
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.
Diffstat (limited to 'libc/bionic/stubs.c')
-rw-r--r-- | libc/bionic/stubs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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; |