Re: [PATCH] copy_file_file: Use binary mode when opening the source/destination file

2002-07-29 Thread Pavel Tsekov
Maybe it is a good idea to write mc_open as a wraper function (now it is macro) , and in this function always set O_BINARY, something like this: int mc_open(char * filename, int flags) { return open(filename, flags | O_BINARY); } Pavel R. , what do you think about this?

Re[2]: [PATCH] copy_file_file: Use binary mode when opening the source/destination file

2002-07-24 Thread Pavel Tsekov
Hey, Alexander! :) AV It looks like we will end up adding O_BINARY flag to all mc_open calls (I AV did the same change for editor). AV Maybe it is a good idea to write mc_open as a wraper function (now it is AV macro) , and in this function always set O_BINARY, something like this: AV int

[PATCH] copy_file_file: Use binary mode when opening the source/destination file

2002-07-23 Thread Pavel Tsekov
The attached patch will help to avoid file coruption, as a result of a copy operation, between different mounted filesystems i.e. binary vs. text mounted filesystems. Thanks! :) Pavel Tsekov mc-copy_file_file.patch Description: Binary data