Skip to content

berrno_test.cc: accept both 271E and 273E#1407

Merged
arogge merged 2 commits intomasterfrom
dev/pstorz/master/accept-multiple-windows-errnos
Mar 15, 2023
Merged

berrno_test.cc: accept both 271E and 273E#1407
arogge merged 2 commits intomasterfrom
dev/pstorz/master/accept-multiple-windows-errnos

Conversation

@pstorz
Copy link
Member

@pstorz pstorz commented Mar 14, 2023

The error string for bind_error_message can be both
"No such file or directory (errno=2 | win_error=0x0000271E)" and
"No such file or directory (errno=2 | win_error=0x0000273F)" depending on the windows cross chain.

We now allow both.

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Check backport line
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

The error string for bind_error_message can be both
"No such file or directory (errno=2 | win_error=0x0000271E)"
and
"No such file or directory (errno=2 | win_error=0x0000273F)"
depending on the windows cross chain.

We now allow both.
@pstorz pstorz force-pushed the dev/pstorz/master/accept-multiple-windows-errnos branch from 7362313 to 5394724 Compare March 14, 2023 17:55
@arogge
Copy link
Member

arogge commented Mar 15, 2023

I have the strange feeling that something in the Windows error reporting is seriously broken. And from the kind of error-numbers we see here, that's a problem with berrno.

@arogge arogge merged commit 9d7cefc into master Mar 15, 2023
@arogge arogge deleted the dev/pstorz/master/accept-multiple-windows-errnos branch March 15, 2023 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants