-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: fix bug #1823 #1848
install: fix bug #1823 #1848
Conversation
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.
Looks good but would it be great to add a test !
- add a test for copying a file from one directory to another - add the desired behavior Fixes uutils#1823
8b73832
to
7a91281
Compare
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.
For some reason I can't run any of the tests for install
:
cargo test test_install_copy_file_leading_dot
cargo test --bin=install --package=uu_install
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
I think that has to do with the fact that currently install
is not included in the busybox-like binary
|
I've snuck in a refactoring commit: I've renamed the file & directory names throughout the tests, since they gave a false impression that they all execute within the same directory ( Please do tell if I should revert |
2d3dffa
to
220ca78
Compare
great, thanks :) |
TIL path manipulation in rust is intentionally basic due to security concerns.
fixes #1823