Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11166: boost::filesystem::remove is racy
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-06 14:58:27
#11166: boost::filesystem::remove is racy
------------------------------------+------------------------
Reporter: Jeff Epler <jepler@â¦> | Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------+------------------------
Comment (by Jeff Epler <jepler@â¦>):
The proposed patch fixes the file -> nonexistent and directory ->
nonexistent cases. The others are not as important for our use case, but
for example (errno == EISDIR) would be an appropriate check after unlink()
for the file -> directory case. Lightly tested via my test case on Linux
and Windows.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11166#comment:2> 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:18 UTC