#52 closed defect (fixed)
vfs_rename() - Bad detection of move to subdir of source dir
Reported by: | Jiri Svoboda | Owned by: | Jakub Jermář |
---|---|---|---|
Priority: | major | Milestone: | 0.4.1 |
Component: | helenos/srv/vfs | Version: | mainline |
Keywords: | vfs rename fs | Cc: | jakub@… |
Blocker for: | Depends on: | ||
See also: |
Description
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)
comment:1 Changed 14 years ago by
Cc: | jakub@… added |
---|---|
Owner: | set to Jakub Jermář |
Status: | new → accepted |
comment:2 Changed 14 years ago by
Keywords: | fs added |
---|
comment:3 Changed 14 years ago by
Component: | → srv/vfs |
---|
comment:4 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Fixed in revision 4366.
comment:5 Changed 14 years ago by
Milestone: | 0.5.0 → 0.4.1 |
---|
Note: See
TracTickets for help on using
tickets.
Accepting the ticket.