Boost C++ Libraries: Ticket #8425: [filesystem][documentation] copy_file cannot overwrite executing binary https://svn.boost.org/trac10/ticket/8425 <p> If trying to copy a binary file over the currently executing program, then the <em>copy_file</em> call fails even though it has the <em>overwrite_if_exists</em> flag. </p> <p> Examining the code, this appears to be because <em>copy_file_api</em> (Linux) uses popen, thus attempts to write to the same file data as distinct from creating a new file node. </p> <p> The peculiar error "Text file busy: &lt;binary&gt;" is reported. </p> <p> Given that the Windows version would not (AFAIK) be able to achieve this anyway, I would say that this behaviour is "by design" but suggest a documentation update for <em>copy_file</em>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8425 Trac 1.4.3