* vfs.c (mc_def_getlocalcopy): Use O_LINEAR when retrieving the

remote file.  This avoids an extra temporary file.
This commit is contained in:
Pavel Roskin 2003-10-27 21:55:06 +00:00
parent ffddff51ea
commit 520f6ddb6c
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2003-10-27 Pavel Roskin <proski@gnu.org>
* vfs.c (mc_def_getlocalcopy): Use O_LINEAR when retrieving the
remote file. This avoids an extra temporary file.
* cpio.c (cpio_ungetlocalcopy): Remove.
* tar.c (tar_ungetlocalcopy): Likewise.
* vfs.c (mc_def_ungetlocalcopy): Add support for read-only

View File

@ -1015,7 +1015,7 @@ mc_def_getlocalcopy (struct vfs_class *vfs, char *filename)
char buffer[8192];
struct stat mystat;
fdin = mc_open (filename, O_RDONLY);
fdin = mc_open (filename, O_RDONLY | O_LINEAR);
if (fdin == -1)
return NULL;