[Boost-bugs] [Boost C++ Libraries] #8939: boot filesystem error when copy-overwrite-the file to itself

Subject: [Boost-bugs] [Boost C++ Libraries] #8939: boot filesystem error when copy-overwrite-the file to itself
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-30 15:35:20


#8939: boot filesystem error when copy-overwrite-the file to itself
----------------------------------+------------------------
 Reporter: hoangtrongminhtuan@… | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
----------------------------------+------------------------
 I'm running RedHat. I tried to copy, and overwrite if existing file 'a' to
 itself.

 namespace fs=boost::filesystem;
 fs::copyfile('a', 'a', fs::copy_option::overwrite_if_exist);

 This clear the content of 'a', and giving me an empty file.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8939>
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:13 UTC