Boost logo

Boost :

Subject: Re: [boost] filesystem: wrong close 0 descriptor in copy_file_api on unix
From: Beman Dawes (bdawes_at_[hidden])
Date: 2008-11-29 21:53:17


On Sat, Nov 29, 2008 at 10:16 AM, Anton Ivanov <ai_at_[hidden]> wrote:

> Hi!
>
> Seems bug in boost::filesystem::copy_file on unix.
>
> This code is wrong if ::stat call fails - it is just close descriptor
> with number 0 (by if ( infile >= 0 ) ::close( infile );).

Fixed.

Thanks for the bug report and patch!

--Beman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk