Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 26 Dec 2018 10:47:19 -0500
From: Rich Felker <>
Cc: Philippe Grégoire <>
Subject: Re: getspnam: errno=ENOENT for absent user

On Wed, Dec 26, 2018 at 01:29:17PM +0100, Szabolcs Nagy wrote:
> * Philippe Grégoire <> [2018-12-25 17:07:14 -0500]:
> > I'm working with saltstack on Alpine Linux and am getting trouble
> > managing users. I tracked the problem down to musl and the fact
> > that getspnam sets errno to ENOENT when a user is missing. This
> > behavior differs from glibc which leaves errno to 0 and makes
> > the user relies on the return value; when the name is missing.
> > 
> > Semantically, ENOENT makes sense, but this is breaking compatibility
> > with other softwares, at the moment. I'll send a patch over to
> > saltstack so that current systems are supported, but believe it
> > should be fixed here too for future compatibility. What do you think?
> based on
> "If the requested entry was not found, errno shall not be changed."
> this should be fixed in musl.

Thanks for checking this. I'll write and commit a fix.


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.