vfs_rename() - Bad detection of move to subdir of source dir
vfs_rename() detects whether we are moving a directory to its own descendant by 1. canonifying the src and dest paths, 2. checking if src is a prefix of dest. This is wrong (t.m.) as we cannot rename 'a' to 'ab'. The prefix needs to be considered on a component level, not character level.
We should probably implement a command to test rename() first.
Change History
(5)
Cc: |
jakub@… added
|
Owner: |
set to Jakub Jermář
|
Status: |
new → accepted
|
Resolution: |
→ fixed
|
Status: |
accepted → closed
|
Accepting the ticket.