Fix fseeko on BSD-based platforms.
authorLarry Jones <lawrence.jones@siemens.com>
Thu, 13 Dec 2007 18:11:53 +0000 (11:11 -0700)
committerEric Blake <ebb9@byu.net>
Thu, 13 Dec 2007 18:11:53 +0000 (11:11 -0700)
* lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
successful seek.

ChangeLog
lib/fseeko.c

index 1b1f43b5240781c06008681a6700a80b8a94c7ec..f430f7bc59f1b2fb904b7ac4d0793301deda34f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
+
+       Fix fseeko on BSD-based platforms.
+       * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
+       successful seek.
+
 2007-12-12  Eric Blake  <ebb9@byu.net>
 
        Allow circular dependency of separate libtests.a
index 48c833b8404ebf5e44f2168f9cff5a101b4aee64..e495226a4f702aee100787e2148a6fce08859a1a 100644 (file)
@@ -111,6 +111,7 @@ rpl_fseeko (FILE *fp, off_t offset, int whence)
 #if defined __sferror               /* FreeBSD, NetBSD, OpenBSD, MacOS X, Cygwin */
          fp->_offset = pos;
          fp->_flags |= __SOFF;
+         fp->_flags &= ~__SEOF;
 #endif
          return 0;
        }