* 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:
Pavel Roskin 2002-07-10 17:56:27 +00:00
parent 3f02ae47e8
commit 6f3a7c8029
4 changed files with 12 additions and 3 deletions

View File

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

View File

@ -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);

View File

@ -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);

View File

@ -157,7 +157,7 @@ sfs_open (vfs *me, char *path, int flags, int mode)
int fd;
path = redirect (me, path);
fd = open (path, flags, mode);
fd = open (path, NO_LINEAR(flags), mode);
if (fd == -1)
return 0;