|
|
Message-Id: <FB556B5B-111B-4180-A424-9F6F9718F874@Wilcox-Tech.com>
Date: Wed, 29 Oct 2025 03:34:44 -0500
From: "A. Wilcox" <AWilcox@...cox-Tech.com>
To: musl@...ts.openwall.com,
Sebastien Marie <semarie@...ouay.eu.org>
Subject: Re: about getpwent functions family
On Oct 29, 2025, at 2:44 AM,
Sebastien Marie <semarie@...ouay.eu.org> wrote:
>
> Hi,
>
> I am using alpine linux (which is using musl libc) and I am trying to
> build xen-api [1].
>
> xen-api is using getpwent_r (and getspent_r but let's focus on
> getpwent_r) function in unixpwd [2], a simple C library with OCaml
> bindings to support updating Unix account passwords in /etc/passwd and
> /etc/shadow.
>
> I am looking for rational or previous discussion about inclusion or not
> of such GNU extension functions in musl.
>
> fgetpwent and putpwent, which are also GNU extension, are already
> present.
>
> If there is no objection, I would look to provide patches for adding
> getpwent_r() and/or fgetpwent_r() (and {,f}getspent_r counterpart).
>
> Thanks.
> --
> Sebastien Marie
>
> [1] https://github.com/xapi-project/xen-api
> [2] https://github.com/xapi-project/xen-api/tree/master/unixpwd
Hi Sebastien,
You may want to look in to libnsss[1], probably compiled with
`-DNSSS_DISABLE_SWITCH` so it only uses Unix files.
Best,
-Anna
[1]: https://skarnet.org/software/nsss/libnsss/index.html
—
Anna Wilcox (she/her)
SW Engineering: C++/Rust, DevOps, POSIX, Py/Ruby
Wilcox Technologies Inc.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.