logd: pidToUid incorrect
Change-Id: I9b0e655780924db125568179771e57b01e80aaae
This commit is contained in:
parent
e83d8a6900
commit
c32afdf913
|
@ -430,7 +430,7 @@ uid_t pidToUid(pid_t pid) {
|
|||
if (fp) {
|
||||
while (fgets(buffer, sizeof(buffer), fp)) {
|
||||
int uid;
|
||||
if (sscanf(buffer, "Groups: %d", &uid) == 1) {
|
||||
if (sscanf(buffer, "Uid: %d", &uid) == 1) {
|
||||
fclose(fp);
|
||||
return uid;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue