bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fseeko bug


From: Larry Jones
Subject: fseeko bug
Date: Thu, 13 Dec 2007 12:05:14 -0500 (EST)

CVS nightly testing has been failing on BSD/OS and I've finally tracked
the problem down to a bug in fseeko -- it doesn't clear the EOF flag
after doing its magic:

Index: fseeko.c
===================================================================
RCS file: /cvsroot/cvs/ccvs/lib/fseeko.c,v
retrieving revision 1.3
diff -u -r1.3 fseeko.c
--- fseeko.c    23 Aug 2007 21:35:22 -0000      1.3
+++ fseeko.c    13 Dec 2007 16:13:57 -0000
@@ -107,6 +107,7 @@
 #if defined __sferror               /* FreeBSD, NetBSD, OpenBSD, MacOS X, 
Cygwin */
          fp->_offset = pos;
          fp->_flags |= __SOFF;
+         fp->_flags &= ~__SEOF;
 #endif
          return 0;
        }

-Larry Jones

All this was funny until she did the same thing to me. -- Calvin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]