Skip to content

avoid strerror_r failure on unknown errnum #2465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2022

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Aug 5, 2022

This is an informative function anyway, so as fallback just return a string with the raw errnum. Avoids panics / interpreter aborts in std on unknown errnum in from_raw_os_error.

@RalfJung
Copy link
Member Author

RalfJung commented Aug 5, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Aug 5, 2022

📌 Commit fa8164c has been approved by RalfJung

It is now in the queue for this repository.

bors added a commit that referenced this pull request Aug 5, 2022
avoid strerror_r failure on unknown errnum

This is an informative function anyway, so as fallback just return a string with the raw errnum. Avoids panics / interpreter aborts in std on unknown errnum in from_raw_os_error.
@bors
Copy link
Contributor

bors commented Aug 5, 2022

⌛ Testing commit fa8164c with merge 47f1eea...

@bors
Copy link
Contributor

bors commented Aug 5, 2022

💔 Test failed - checks-actions

@RalfJung
Copy link
Member Author

RalfJung commented Aug 6, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Aug 6, 2022

📌 Commit 6d14a5e has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Aug 6, 2022

⌛ Testing commit 6d14a5e with merge 74c5f1b...

@bors
Copy link
Contributor

bors commented Aug 6, 2022

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 74c5f1b to master...

@bors bors merged commit 74c5f1b into rust-lang:master Aug 6, 2022
@RalfJung RalfJung deleted the strerror_r branch August 6, 2022 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants