On 30 August 2017 at 08:32, Karel Zak <kzak@xxxxxxxxxx> wrote: > On Mon, Aug 28, 2017 at 09:38:13PM +0100, Sami Kerola wrote: >> Less code, less bugs. And if there are bugs at least share them with all >> other programs that use getusershell(3) from libc. > > Is it portable? ulibC etc.. ? It is available in uClib https://git.uclibc.org/uClibc/tree/libc/unistd/usershell.c Also in musl, but strangely in legacy directory https://git.musl-libc.org/cgit/musl/tree/src/legacy/getusershell.c But I guess the best option is to add check to configure.ac and write util-linux getusershell() fallback when it is not available. I'll do that sometime soonish, about before end of the week. -- Sami Kerola http://www.iki.fi/kerolasa/ -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html