Hi, currently, the getgr, getpw, and getspnam functions in musl return ERANGE when the allocated buffer is not large enough, but do not set errno to the same value. This causes issues with utilities, for example the "shadow" utilities (useradd/mod, groupmod, etc.) which assume this behaviour (which at least gnu libc exhibits) and leads to groups having a small limit on the number of members. The attached patch, against 1.1.16, corrects this. Cheers, Rudolph