Non glibc implementations of strtol, strtoul, and friends may set errno to EINVAL in case conversion isn't performed. We already perform replacement of strtoull and strtoll in replace.c and so precedent is to simply detect / replace with glibc-compatible variant. gitlab MR: https://gitlab.com/samba-team/samba/-/merge_requests/2974/diffs