commit | e60a934bd5d799edb69ff83bb329d2c5e9e1ef7b | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Oct 19 14:51:48 2022 -0700 |
committer | Colin Cross <ccross@android.com> | Wed Oct 19 15:00:56 2022 -0700 |
tree | f9380b7b0ad98c03d73b57c2535e6ddac1199cb1 | |
parent | c4b3427b09925f344dec512f5faaaccd7543f8af [diff] |
Add fallback for sysconf(_SC_GETPW_R_SIZE_MAX) According to getpwnam(3), sysconf(_SC_GETPW_R_SIZE_MAX) can return -1 and does so on musl. Fall back to a reasonable value that matches what glibc returns. Bug: 190084016 Test: m USE_HOST_MUSL=true host-native -k Change-Id: I373e962cee5e85eeedbdc2c0e5fd180fa5cb8b6d