This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients BreamoreBoy, astrand, r.david.murray, vstinner
Date 2014-03-23.09:56:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395568617.32.0.802385585994.issue4261@psf.upfronthosting.co.za>
In-reply-to
Content
According to the manual page, there is no guarantee that missing user and error give a different result. Extracts of the manual page.

"""
Return Value

The getpwnam() and getpwuid() functions return a pointer to a passwd structure, or NULL if the matching entry is not found or an error occurs. If an error occurs, errno is set appropriately. If one wants to check errno after the call, it should be set to zero before the call.

(...)

Errors

0 or ENOENT or ESRCH or EBADF or EPERM or ...

    The given name or uid was not found. 
"""

errno=0 is not always the case for mising user.
History
Date User Action Args
2014-03-23 09:56:57vstinnersetrecipients: + vstinner, astrand, r.david.murray, BreamoreBoy
2014-03-23 09:56:57vstinnersetmessageid: <1395568617.32.0.802385585994.issue4261@psf.upfronthosting.co.za>
2014-03-23 09:56:57vstinnerlinkissue4261 messages
2014-03-23 09:56:56vstinnercreate