Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

chgrp/chown: move common code to uucore#2570

Merged
sylvestre merged 2 commits intouutils:masterfrom
miDeb:chgrp/no-duplication
Aug 24, 2021
Merged

chgrp/chown: move common code to uucore#2570
sylvestre merged 2 commits intouutils:masterfrom
miDeb:chgrp/no-duplication

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.

@miDeb miDeb force-pushed the chgrp/no-duplication branch from 8f9b87c to c47fa16 Compare August 14, 2021 23:24
@miDeb miDeb force-pushed the chgrp/no-duplication branch from 5474668 to d55ae0f Compare August 17, 2021 20:43
@sylvestre
Copy link
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
Contributor

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

@miDeb miDeb force-pushed the chgrp/no-duplication branch from d55ae0f to fa10a20 Compare August 22, 2021 15:53
@miDeb miDeb changed the title chgrp: forward to chown chgrp/chown: move common code to uucore Aug 22, 2021
miDeb added 2 commits August 24, 2021 15:22
chgrp does mostly the same as chown.
By making chown a bit more configurable we can reuse its code for chgrp.
@miDeb miDeb force-pushed the chgrp/no-duplication branch from fa10a20 to 4e25170 Compare August 24, 2021 13:22
@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