[Boost-bugs] [Boost C++ Libraries] #5988: boost::filesystem::absolute doesn't work with ../relative_path or ./relative_path

Subject: [Boost-bugs] [Boost C++ Libraries] #5988: boost::filesystem::absolute doesn't work with ../relative_path or ./relative_path
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-07 04:21:03


#5988: boost::filesystem::absolute doesn't work with ../relative_path or
./relative_path
---------------------------------------------+------------------------------
 Reporter: Sachin Garg <schngrg@…> | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
---------------------------------------------+------------------------------
 In boost filesystem v3, boost::filesystem::absolute only appends the
 relative path to base path. It should also remove "./" from relative paths
 and "backtrack" on base path if relative path contains "../../" etc.

 For example,
 Input:
   "d:\current\path"
   ".\..\relative\path"

 Result obtained:
   "d:\current\path\.\..\relative\path"

 Desired result:
   "d:\current\relative\path"

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5988>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC