This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nss/23737] [bisected] nss_files returns EINVAL on getpwent()
- From: "slyfox at inbox dot ru" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 04 Oct 2018 18:36:21 +0000
- Subject: [Bug nss/23737] [bisected] nss_files returns EINVAL on getpwent()
- Auto-submitted: auto-generated
- References: <bug-23737-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23737
Sergei Trofimovich <slyfox at inbox dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Sergei Trofimovich <slyfox at inbox dot ru> ---
(In reply to Florian Weimer from comment #2)
> (In reply to Andreas Schwab from comment #1)
> > You are checking errno when getpwent didn't fail. That doesn't produce a
> > defined value.
>
> I agree, this doesn't look like something that can be supported, and I'm
> pretty sure the old code could clobber errno under the right circumstances,
> too.
>
> We have other errno-related problems in NSS functions (see bug 21898), but
> this does not seem to be one of them.
Oh, that is very subtle. But makes sense.
Apologies for the noise and thanks for quick response!
--
You are receiving this mail because:
You are on the CC list for the bug.