Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrich Drepper committed Mar 14, 2000
1 parent f1a5340 commit 9658516
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 2 additions & 1 deletion libio/iofopncook.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9658516

Please sign in to comment.