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?
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
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