mirror of
https://github.com/boostorg/filesystem.git
synced 2026-01-29 07:32:12 +00:00
Filesystem: fix #2542, wrong close 0 descriptor in copy_file_api on unix
[SVN r50033]
This commit is contained in:
@@ -1205,7 +1205,7 @@ namespace boost
|
||||
{
|
||||
const std::size_t buf_sz = 32768;
|
||||
boost::scoped_array<char> buf( new char [buf_sz] );
|
||||
int infile=0, outfile=0; // init quiets compiler warning
|
||||
int infile=-1, outfile=-1; // -1 means not open
|
||||
struct stat from_stat;
|
||||
|
||||
if ( ::stat( from_file_ph.c_str(), &from_stat ) != 0
|
||||
|
||||
Reference in New Issue
Block a user