user-util: fix fgetxxent_sane on musl
authorMike Gilbert <floppym@gentoo.org>
Fri, 7 Jun 2024 16:28:41 +0000 (12:28 -0400)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Jun 2024 09:41:55 +0000 (11:41 +0200)
commit953c60e2f1022ade270ebb623a9cf1c679d888c1
treec612eafc3773254d460928a5784160327a9a380c
parentfb8e05cc4359e36f1380208671278fde07c248cc
user-util: fix fgetxxent_sane on musl

musl's implementation does not set errno to ENOENT when the end of file
is reached. It returns NULL and leaves errno unchanged.
src/basic/user-util.c