Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #458: ticket458.patch

File ticket458.patch, 0.7 kB (added by Gregor, 2 years ago)

Patch to fix truncation issue

  • tango/io/FileConduit.d

    old new  
    472472                        static const Flags Create =   
    473473                                        [ 
    474474                                        0,              // open existing 
    475                                         O_CREAT,        // create always 
     475                                        O_CREAT | O_TRUNC, // create always 
    476476                                        O_TRUNC,        // must exist 
    477477                                        O_APPEND | O_CREAT,  
    478478                                        ];