|
|
Message-ID: <0e50af72-4552-44ab-805c-0bc396bfdc83@gmail.com>
Date: Thu, 30 Oct 2025 22:28:29 -0400
From: Demi Marie Obenour <demiobenour@...il.com>
To: musl@...ts.openwall.com, "A. Wilcox" <AWilcox@...cox-Tech.com>,
Sebastien Marie <semarie@...ouay.eu.org>
Subject: Re: about getpwent functions family
On 10/29/25 04:34, A. Wilcox wrote:
> 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
I recommend spawning a subprocess instead.
--
Sincerely,
Demi Marie Obenour (she/her/hers)
Download attachment "OpenPGP_0xB288B55FFF9C22C1.asc" of type "application/pgp-keys" (7141 bytes)
Download attachment "OpenPGP_signature.asc" of type "application/pgp-signature" (834 bytes)
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.