]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 14 Mar 2000 10:01:31 +0000 (10:01 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 14 Mar 2000 10:01:31 +0000 (10:01 +0000)
2000-03-14  Ulrich Drepper  <drepper@redhat.com>

* libio/iofopncook.c (_IO_cookie_seek): Return error only if value
returned by seek cookie function is -1.

ChangeLog
libio/iofopncook.c

index 1db690992fc4f52f1576182214605b114c4ef77e..7de6b472046498ef8c3b08bb7ce9d4fd6c81f9f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-14  Ulrich Drepper  <drepper@redhat.com>
+
+       * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
+       returned by seek cookie function is -1.
+
 2000-03-14  Andreas Jaeger  <aj@suse.de>
 
        * locale/localeconv.c (localeconv): Fix typo.
index 56f2239764b2e390f13c74b640e8146008f35846..419b02d6da355c2a14e931a184344a287dfc0eab 100644 (file)
@@ -75,7 +75,8 @@ _IO_cookie_seek (fp, offset, dir)
   struct _IO_cookie_file *cfile = (struct _IO_cookie_file *) fp;
 
   return ((cfile->__io_functions.seek == NULL
-          || cfile->__io_functions.seek (cfile->__cookie, &offset, dir))
+          || (cfile->__io_functions.seek (cfile->__cookie, &offset, dir)
+              == (_IO_off64_t) -1))
          ? _IO_pos_BAD : offset);
 }
 
This page took 0.048147 seconds and 5 git commands to generate.