mirror of https://github.com/MidnightCommander/mc
* direntry.c (vfs_s_open): Don't pass O_LINEAR to open() -
this flag is for VFS only, and causes side effects in Cygwin. * extfs.c (extfs_open): Likewise. * sfs.c (sfs_open): Likewise. Reported by Pavel Tsekov <ptsekov@gmx.net>
This commit is contained in:
parent
3f02ae47e8
commit
6f3a7c8029
|
@ -1,3 +1,11 @@
|
|||
2002-07-10 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* direntry.c (vfs_s_open): Don't pass O_LINEAR to open() -
|
||||
this flag is for VFS only, and causes side effects in Cygwin.
|
||||
* extfs.c (extfs_open): Likewise.
|
||||
* sfs.c (sfs_open): Likewise.
|
||||
Reported by Pavel Tsekov <ptsekov@gmx.net>
|
||||
|
||||
2002-07-03 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* ftpfs.c (setup_passive): Cast arguments to isdigit() to
|
||||
|
|
|
@ -800,7 +800,7 @@ vfs_s_open (vfs *me, char *file, int flags, int mode)
|
|||
}
|
||||
|
||||
if (fh->ino->localname){
|
||||
fh->handle = open (fh->ino->localname, flags, mode);
|
||||
fh->handle = open (fh->ino->localname, NO_LINEAR(flags), mode);
|
||||
if (fh->handle == -1){
|
||||
g_free(fh);
|
||||
ERRNOR (errno, NULL);
|
||||
|
|
|
@ -657,7 +657,8 @@ static void *extfs_open (vfs *me, char *file, int flags, int mode)
|
|||
g_free (cmd);
|
||||
}
|
||||
|
||||
local_handle = open (entry->inode->local_filename, flags, mode);
|
||||
local_handle = open (entry->inode->local_filename, NO_LINEAR(flags),
|
||||
mode);
|
||||
if (local_handle == -1) ERRNOR (EIO, NULL);
|
||||
|
||||
extfs_info = g_new (struct pseudofile, 1);
|
||||
|
|
Loading…
Reference in New Issue