-
Notifications
You must be signed in to change notification settings - Fork 600
fix: error out when the source and destination might be subdirectories of each other #5173
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
fix: error out when the source and destination might be subdirectories of each other #5173
Conversation
ae24818
to
abec01a
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.
The check that you added fails for situations like
mc mv /tmp/file.tmp /tmp/file
422af5f
to
bc455da
Compare
@shtripat @harshavardhana Need this to fix linter. |
@jiuker will send a separate PR for that from miniohq/ec |
…each other error out when the source and destination might be subdirectories of each other
f0ecdde
to
8c9cd37
Compare
…re-the-same-for-mv
remove doc
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.
No need for being unclear in the error.
Co-authored-by: Klaus Post <klauspost@gmail.com>
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.
lgtm
mv dir to dir/subdir not not supported minio/mc#5173 todo: make a content backup durung uploading
Community Contribution License
All community contributions in this pull request are licensed to the project maintainers
under the terms of the Apache 2 license.
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.
Description
fix: error out when the source and destination might be subdirectories of each other
fix #5170
Motivation and Context
How to test this PR?
Types of changes
Checklist:
commit-id
orPR #
here)