-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
uucore/buf_copy: bug fixes for compatibility with uutils core utilities #6983
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
Conversation
d76f030 to
542f6c6
Compare
|
GNU testsuite comparison: |
| use crate::error::UError; | ||
| use std::io::{Read, Write}; | ||
|
|
||
| #[cfg(any(target_os = "linux", target_os = "android"))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is starting to look messy with all the cfg
maybe the .rs file per platform ?
for example:
src/uu/tail/src/platform/
sylvestre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs some refactoring. Too many cfg
|
oh right on that, wait |
791c24c to
0b793ef
Compare
|
@sylvestre how's it |
| @@ -0,0 +1,29 @@ | |||
| use crate::error::UError; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add the license header here
the splice_data_to_fd function now does not loop forever and returns the amount of bytes written properly.
several tests now are executed properly with proper handling of pipelines.
refactor the buf_copy module into Linux and non-Linux implementations.
0b793ef to
148c531
Compare
|
much better, thanks :) |
|
GNU testsuite comparison: |
1 similar comment
|
GNU testsuite comparison: |
20baf32 to
028293c
Compare
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
028293c to
c2f3a76
Compare
|
there, should be ok now |
|
GNU testsuite comparison: |
|
thanks! |
This PR addresses several issues that previously hindered the usage of the new buffer-based copying module (#6964) in several core utilities (notably
cp,cat,yes, andinstall).