On Feb 14 13:49, Corinna Vinschen via Cygwin wrote: > On Feb 14 12:24, Christian Franke via Cygwin wrote: > > Hmm... does "beyond" mean '>=' or '>' ? > > ...do you think this fixes it? > > diff --git a/winsup/cygwin/fhandler/base.cc b/winsup/cygwin/fhandler/base.cc > index 8f3dbd4ed51a..79dfaaa5987a 100644 > --- a/winsup/cygwin/fhandler/base.cc > +++ b/winsup/cygwin/fhandler/base.cc > @@ -1144,7 +1144,7 @@ fhandler_base::lseek (off_t offset, int whence) > return -1; > } > /* Per Linux man page, ENXIO if offset is beyond EOF */ > - if (offset > fsi.EndOfFile.QuadPart) > + if (offset >= fsi.EndOfFile.QuadPart) > { > set_errno (ENXIO); > return -1;
Yeah, it does. I'll push the patch. Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple