From: Ulrich Drepper Date: Tue, 14 Mar 2000 10:01:31 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc_2-1-91~895 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9658516adfc6e7627d43e83c947144dfbec3c285;p=platform%2Fupstream%2Fglibc.git Update. 2000-03-14 Ulrich Drepper * libio/iofopncook.c (_IO_cookie_seek): Return error only if value returned by seek cookie function is -1. --- diff --git a/ChangeLog b/ChangeLog index 1db6909..7de6b47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-03-14 Ulrich Drepper + + * libio/iofopncook.c (_IO_cookie_seek): Return error only if value + returned by seek cookie function is -1. + 2000-03-14 Andreas Jaeger * locale/localeconv.c (localeconv): Fix typo. diff --git a/libio/iofopncook.c b/libio/iofopncook.c index 56f2239..419b02d 100644 --- a/libio/iofopncook.c +++ b/libio/iofopncook.c @@ -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); }