diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-03-14 10:01:31 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-03-14 10:01:31 +0000 |
commit | 9658516adfc6e7627d43e83c947144dfbec3c285 (patch) | |
tree | 2e1363c8e2a2a425645b903382281bd69927d912 | |
parent | f1a53402e86145c7adec04ecf9e88746ee435c83 (diff) | |
download | glibc-9658516adfc6e7627d43e83c947144dfbec3c285.zip glibc-9658516adfc6e7627d43e83c947144dfbec3c285.tar.gz glibc-9658516adfc6e7627d43e83c947144dfbec3c285.tar.bz2 |
Update.
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libio/iofopncook.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -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. 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); } |