Skip to content
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

sync: various compatibility improvement #4003

Merged
merged 2 commits into from
Oct 9, 2022
Merged

Conversation

sylvestre
Copy link
Contributor

No description provided.

@sylvestre
Copy link
Contributor Author

Passes:
Congrats! The gnu test tests/misc/sync is no longer failing!

match open(Path::new(&f), OFlag::O_NONBLOCK, Mode::empty()) {
Ok(_) => {}
Err(e) => {
if e == Errno::ENOENT {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably add automatic conversion from nix::Errno to UError like we have for std::io::Error. Then we don't need these manual conversions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like a good idea. Do you want me to open an issue as a good first bug ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good idea

@sylvestre
Copy link
Contributor Author

@tertsdiepraam ok with you ? :)

@tertsdiepraam tertsdiepraam merged commit 7d8917b into uutils:main Oct 9, 2022
@tertsdiepraam
Copy link
Member

Yep, all good!

@sylvestre sylvestre deleted the sync2 branch October 10, 2022 14:39
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