8000 cp: Fail when copying a directory to a file by water-ghosts · Pull Request #3044 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cp: Fail when copying a directory to a file #3044

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

Merged
merged 1 commit into from
Feb 6, 2022
Merged

cp: Fail when copying a directory to a file #3044

merged 1 commit into from
Feb 6, 2022

Conversation

water-ghosts
Copy link
Contributor

This addresses the GNU test cp/dir_vs_file. Previously, uutils would ignore failures caused by copying directories to files, and return an exit code of 0 even though the copy didn't suceed. GNU expects an exit code of 1.

@water-ghosts water-ghosts reopened this Feb 4, 2022
@tertsdiepraam
Copy link
Member

Very nice!

Warning: Changes from main: PASS +1 / FAIL -1 / ERROR +0 / SKIP +0

@sylvestre sylvestre merged commit 1ac45c9 into uutils:main Feb 6, 2022
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.

3 participants
0