Re: [PATCH] copy_file_file: Use binary mode when opening the source/destination file
- From: "Alexander Varakin" <avarakin00 hotmail com>
- To: "Pavel Tsekov" <ptsekov gmx net>, <mc-devel gnome org>
- Subject: Re: [PATCH] copy_file_file: Use binary mode when opening the source/destination file
- Date: Tue, 23 Jul 2002 20:35:02 -0400
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" <ptsekov gmx net>
To: <mc-devel gnome org>
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]