Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Conversation

@TheModMaker
Copy link
Member

If the getpwuid_r method doesn't find an entry with the given ID, it will still return success (0), but the *result will be set to NULL. This checks the result value so it won't crash if it doesn't find the entry.

This normally shouldn't ever happen (since it just got the value from geteuid()), but it can somehow happen on iOS simulators.

If the getpwuid_r method doesn't find an entry with the given ID, it
will still return success (0), but the *result will be set to NULL.
This checks the |result| value so it won't crash if it doesn't find
the entry.

This normally shouldn't ever happen, but it can somehow happen on
iOS simulators.
@sergiud sergiud merged commit 242130d into google:master Oct 31, 2019
@sergiud sergiud added this to the 0.5 milestone Apr 13, 2021
@sergiud sergiud mentioned this pull request May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants