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

install: should show the same error regardless of whether target ends with slash #5720

Closed
cakebaker opened this issue Dec 24, 2023 · 0 comments · Fixed by #5730
Closed

install: should show the same error regardless of whether target ends with slash #5720

cakebaker opened this issue Dec 24, 2023 · 0 comments · Fixed by #5730
Labels

Comments

@cakebaker
Copy link
Contributor

While reviewing #5686, I noticed the following difference between GNU install and uutils install:

// setup
$ touch a
$ mkdir target
$ touch target/b

// GNU install
$ install -t target/b -D a
install: failed to access 'target/b': Not a directory
$ install -t target/b/ -D a
install: failed to access 'target/b/': Not a directory

// uutils install
$ cargo run --features="unix" install -t target/b -D a
install: failed to access 'target/b': Not a directory
$ cargo run --features="unix" install -t target/b/ -D a
install: failed to create 'target/b/': entity already exists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants