Opened 10 years ago
Last modified 10 years ago
#7404 new Bugs
filesystem::canonical fails on UNC paths on Windows
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | To Be Determined | Component: | filesystem |
Version: | Boost 1.50.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The filesystem library function canonical(p, base) fails for all UNC paths on Windows because it gets an "invalid path" error when it calls symlink_status at line 816 of operations.cpp. Example: For the path "server/share/file", the first time execution reaches line 816 of operations.cpp, it calls is_symlink(detail::symlink_status("server", ec)) and ec is set to the Windows "invalid path" system error code.
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Component: | None → filesystem |
---|---|
Owner: | set to |
Note:
See TracTickets
for help on using tickets.
Your WikiFormatting corrupted my text slightly. The example path, shown above as "server/share/file", should be preceded by two forward slashes. Same for the string "server" in the call to symlink_status.