BDirectory::Contains() is broken for certain cases of similar paths
|Reported by:||anevilyak||Owned by:||axeld|
Description (last modified by )
Steps to reproduce:
- Create a directory called New Folder.
- Create a directory called New Folder 2.
- Get a BDirectory object for New Folder, a BEntry for New Folder 2, and call BDirectory::Contains() on the resulting entry. It will (incorrectly) return true, because Contains currently compares the paths of the two up to the length of the directory itself. Attached please find a patch intended to fix the situation by comparing the path components individually.
Change History (7)
Note: See TracTickets for help on using tickets.