mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
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.
This commit is contained in:
parent
f1a53402e8
commit
9658516adf
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user