diff options
-rw-r--r-- | bfd/cache.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bfd/cache.c b/bfd/cache.c index fbd46bf..6be253c 100644 --- a/bfd/cache.c +++ b/bfd/cache.c @@ -127,10 +127,13 @@ DEFUN(bfd_cache_delete,(abfd), { boolean ret; - if (fclose ((FILE *)(abfd->iostream)) == EOF) - ret = false; - else + if (fclose ((FILE *)(abfd->iostream)) == 0) ret = true; + else + { + ret = false; + bfd_error = system_call_error; + } snip (abfd); abfd->iostream = NULL; open_files--; |