diff --git a/src/ChangeLog b/src/ChangeLog index 8cc1ad6e0..7ec2cbd6d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -2,6 +2,8 @@ * achown.c: Changed all references to umode_t into mode_t. * file.c: Likewise. + * view.c (view_load): Don't try to use fcntl() with VFS file + handles. That cannot work. 2005-07-03 Roland Illig diff --git a/src/view.c b/src/view.c index 445819865..8c131cd0b 100644 --- a/src/view.c +++ b/src/view.c @@ -1336,13 +1336,6 @@ view_load (WView *view, const char *_command, const char *_file, goto finish; } - /* We don't need O_NONBLOCK after opening the file, unset it */ - cntlflags = fcntl (fd, F_GETFL, 0); - if (cntlflags != -1) { - cntlflags &= ~O_NONBLOCK; - fcntl (fd, F_SETFL, cntlflags); - } - if (st.st_size == 0 || mc_lseek (fd, 0, SEEK_SET) == -1) { /* Must be one of those nice files that grow (/proc) */ view_set_datasource_vfs_pipe (view, fd);