commit | 114cf9913ecd4c5a1e021245b311f0dcaadbb4ec | [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 | ba72e2f3180ff773e3e15c2526bc55a99b505eca | |
parent | 281aab7a0ab90fe9cb468ccefa28af2f6e1fd0fd [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>