commit | 400d817c0c0ad37b5a03abb4d34b9c1e24d49006 | [log] [tgz] |
---|---|---|
author | Robert Yang <decatf@gmail.com> | Wed Oct 24 13:07:50 2018 -0400 |
committer | Robert Yang <decatf@gmail.com> | Wed Oct 24 15:23:55 2018 -0400 |
tree | 10eb83b83502bb3e41b5910bab89d2e5be019546 | |
parent | 14e956d35aa590bfb5adfbc69a78a21f64522766 [diff] |
adb: Use a default _SC_GETPW_R_SIZE_MAX size sysconf(_SC_GETPW_R_SIZE_MAX) may return −1 if there is no hard limit on the the buffer size. Some libc implementations such as musl don't define this limit and will return -1. Use a default buffer size to handle this case. Change-Id: I997b13a2c2dca00574e049a259135e61c8ed8e03 Signed-off-by: Robert Yang <decatf@gmail.com>