* 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>
Этот коммит содержится в:
родитель
3f02ae47e8
Коммит
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);
|
||||
|
@ -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;
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user