This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]