-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: with -t, check if we aren't passed a file #5686
Conversation
GNU testsuite comparison:
|
41023fc
to
28b1de6
Compare
GNU testsuite comparison:
|
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.
There is one situation not handled by this solution: if the target ends with a slash. With GNU, install -t sub/b -Dv a
and install -t sub/b/ -Dv a
both lead to the same error. With uutils, install -t sub/b/ -Dv a
shows a "creating directory" message followed by a "failed to create" message.
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.
I feel that it is a different problem in this case, no ?
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.
Yes, though it is related. We can fix it in another PR.
Should pass tests/install/basic-1
28b1de6
to
9ca7c3e
Compare
GNU testsuite comparison:
|
Should pass tests/install/basic-1