OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c73464
)
Fix android_id_from_name to accept "app_0" as a valid ID.
author
David 'Digit' Turner
<digit@google.com>
Fri, 12 Feb 2010 19:35:38 +0000
(11:35 -0800)
committer
David 'Digit' Turner
<digit@google.com>
Fri, 12 Feb 2010 19:35:38 +0000
(11:35 -0800)
This fixes getpwnam and getpwgrp which returned NULL for "app_0".
"app_0" corresponds to uid/gid 10000 and is perfectly valid.
libc/bionic/stubs.c
patch
|
blob
|
history
diff --git
a/libc/bionic/stubs.c
b/libc/bionic/stubs.c
index
586d497
..
d495674
100644
(file)
--- 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;