Ticket #4194: file_descriptor_trunc.patch

File file_descriptor_trunc.patch, 454 bytes (added by Damien R <damien.rg+bug@…>, 12 years ago)

Patch

  • libs/iostreams/src/file_descriptor.cpp

     
    172172            oflag |= O_APPEND;
    173173    }
    174174    if (mode & BOOST_IOS::trunc)
    175         oflag |= O_CREAT;
     175        oflag |= O_TRUNC;
    176176    #ifdef _LARGEFILE64_SOURCE
    177177        oflag |= O_LARGEFILE;
    178178    #endif