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

chgrp/chown: move common code to uucore #2570

Merged
merged 2 commits into from Aug 24, 2021

Conversation

miDeb
Copy link
Contributor

@miDeb miDeb commented Aug 14, 2021

chgrp does mostly the same as chown.
By making chown a bit more configurable we can reuse its code for chgrp.
Closes #2565.
Depends on #2471 for correct error messages.

src/uu/chgrp/Cargo.toml Outdated Show resolved Hide resolved
@sylvestre
Copy link
Sponsor Contributor

terrific idea, bravo!
I guess you noticed the Mac errors, right ?

@miDeb
Copy link
Contributor Author

miDeb commented Aug 19, 2021

As far as I can tell those test failures are becuase the error messages now start with uucore: instead of chown: due to the refactoring. This should be fixed by #2471

@sylvestre
Copy link
Sponsor Contributor

Could you please rebase this patch now that the other has been merged?

@miDeb miDeb changed the title chgrp: forward to chown chgrp/chown: move common code to uucore Aug 22, 2021
chgrp does mostly the same as chown.
By making chown a bit more configurable we can reuse its code for chgrp.
@sylvestre sylvestre merged commit 111d3e3 into uutils:master Aug 24, 2021
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.

chgrp/chown: reduce code duplication
3 participants