[Bug nss/23737] [bisected] nss_files returns EINVAL on getpwent()

slyfox at inbox dot ru sourceware-bugzilla@sourceware.org
Thu Oct 4 18:36:00 GMT 2018


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.


More information about the Glibc-bugs mailing list