Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12108: boost::filesystem::canonical() enters infinite loop when current path is a directory symlink on windows
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-07-12 08:48:16
#12108: boost::filesystem::canonical() enters infinite loop when current path is a
directory symlink on windows
------------------------------------------+------------------------
Reporter: Tony Abbott <tony.abbott@â¦> | Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.60.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------------+------------------------
Comment (by libaracy@â¦):
Will boost fix it? I have encountered similar problem.
"C:" refers to current directory on drive C according to
https://msdn.microsoft.com/en-
us/library/windows/desktop/aa365247.aspx#fully_qualified_vs._relative_paths
{{{
// this is my test code:
system("mkdir D:\\canonical");
system("mkdir D:\\canonical\\target");
system("echo test > D:\\canonical\\target\\test.txt");
system("mklink /d D:\\canonical\\link D:\\canonical\\target");
SetCurrentDirectoryW(L"D:\\canonical\\link");
auto x =
boost::filesystem::canonical(L"D:\\canonical\\link\\test.txt");
}}}
https://svn.boost.org/trac/boost/ticket/11138 should be similar.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12108#comment:1> 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:20 UTC