diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2007-08-09 14:22:03 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2007-08-09 14:22:03 +0000 |
commit | 4aaedf44f04e56a8d3d40a9265d197a74ea22335 (patch) | |
tree | 2f49864007a78f5eeac97c6c7de5f73ecfeef26b /bfd | |
parent | 6beb151d82862c5843496394e508ff8e5ba5572a (diff) | |
download | binutils-redhat-4aaedf44f04e56a8d3d40a9265d197a74ea22335.tar.gz |
* opncls.c (bfd_openr_iovec): Fix the OPEN parameter macro expansion.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/opncls.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 03bdac1df7..eb5b3e0ea3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2007-08-09 Jan Kratochvil <jan.kratochvil@redhat.com> + + * opncls.c (bfd_openr_iovec): Fix the OPEN parameter macro expansion. + 2007-08-07 Nick Clifton <nickc@redhat.com> * po/bfd.pot: Updated template. diff --git a/bfd/opncls.c b/bfd/opncls.c index 02066d8c1e..3d02c32fb6 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -545,7 +545,8 @@ bfd_openr_iovec (const char *filename, const char *target, nbfd->filename = filename; nbfd->direction = read_direction; - stream = open (nbfd, open_closure); + /* `open (...)' would get expanded by an the open(2) syscall macro. */ + stream = (*open) (nbfd, open_closure); if (stream == NULL) { _bfd_delete_bfd (nbfd); |