It looks like we will end up adding O_BINARY flag to all mc_open calls (I
did the same change for editor).
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?
----- Original Message -----
From: "Pavel Tsekov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 2:37 PM
Subject: [PATCH] copy_file_file: Use binary mode when opening the
source/destination file
> 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-devel mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/mc-devel