Bug 411726 - Wrong assumption when computing the relative path of resources
Summary: Wrong assumption when computing the relative path of resources
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 8.1.2   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 258277 408525
  Show dependency tree
 
Reported: 2013-06-27 00:03 EDT by guy bonneau CLA
Modified: 2020-09-04 15:21 EDT (History)
2 users (show)

See Also:


Attachments
Proposed template patch (913 bytes, application/octet-stream)
2013-06-27 00:03 EDT, guy bonneau CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description guy bonneau CLA 2013-06-27 00:03:34 EDT
Created attachment 232815 [details]
Proposed template patch

The method : public static IPath getRelPath(IPath cwd, IPath location) of class BuildDescriptionManager make a wrong assumption that it is impossible to compute a relative path between 2 paths (one being a target path) if they do not share a common path prefix. It is in fact always possible to compute a relative path between 2 paths if they share the same path device.

Including is a patch to solve the issue.