Bugs item #1232495, was opened at 2005-07-04 22:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1232495&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ted Mielczarek (tam4)
Assigned to: Nobody/Anonymous (nobody)
Summary: FileUtils::CombinePaths mishandles .\..

Initial Comment:
Given a path2 containing ".\..",
FileUtils::CombinePaths does not produce the correct
path.  For example:
CombinePaths(@"c:\test\foo", @".\..\bar") ought to
produce "c:\test\bar", but instead it produces
"c:\test\foo\bar".  The problem is that ".." just
removes the previous path element, which in this case
is the ".".  The simple solution is to just ignore "."
as a path element.

I am attaching a patch that makes this simple change,
but I can't test it because my nant builds all throw an
exception trying to load the log4net dll for some reason.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1232495&group_id=31650


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to