From: Ken Raeburn Date: Tue, 23 Mar 1993 20:11:25 +0000 (+0000) Subject: Eek, a bug! X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b31d06ca14269ecf73276ea1b457a247dcbb4ad4;p=binutils-gdb.git Eek, a bug! Position 0 means no-movement for SEEK_CUR ... not for SEEK_SET. --- diff --git a/bfd/libbfd.c b/bfd/libbfd.c index 8665b238ec2..75ce90e4324 100644 --- a/bfd/libbfd.c +++ b/bfd/libbfd.c @@ -263,7 +263,7 @@ DEFUN(bfd_seek,(abfd, position, direction), BFD_ASSERT (direction == SEEK_SET || direction == SEEK_CUR); - if (direction == SEEK_SET && position == 0) + if (direction == SEEK_CUR && position == 0) return 0; #ifdef FILE_OFFSET_IS_CHAR_INDEX if (direction == SEEK_SET && position == abfd->where)