aboutsummaryrefslogtreecommitdiff
path: root/binutils/ar.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-09-09 11:52:41 +0000
committerNick Clifton <nickc@redhat.com>2004-09-09 11:52:41 +0000
commit360589e8923454f27a100e27d1716b6f6af7b062 (patch)
treee2df6181af82c323acd38de7da1aab626216a3bb /binutils/ar.c
parenta9bdad90d2de0812cb01c8fec342e46b07282021 (diff)
downloadgdb-360589e8923454f27a100e27d1716b6f6af7b062.zip
gdb-360589e8923454f27a100e27d1716b6f6af7b062.tar.gz
gdb-360589e8923454f27a100e27d1716b6f6af7b062.tar.bz2
PR 363
* ar.c (replace_members): Do not use get_file_size as ar_emul_append correctly handles missing files.
Diffstat (limited to 'binutils/ar.c')
-rw-r--r--binutils/ar.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index ec0657d..ab54ace 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -1268,7 +1268,7 @@ static void
replace_members (bfd *arch, char **files_to_move, bfd_boolean quick)
{
bfd_boolean changed = FALSE;
- bfd **after_bfd; /* New entries go after this one */
+ bfd **after_bfd; /* New entries go after this one. */
bfd *current;
bfd **current_ptr;
@@ -1325,8 +1325,7 @@ replace_members (bfd *arch, char **files_to_move, bfd_boolean quick)
/* Add to the end of the archive. */
after_bfd = get_pos_bfd (&arch->next, pos_end, NULL);
- if (get_file_size (* files_to_move) > 0
- && ar_emul_append (after_bfd, *files_to_move, verbose))
+ if (ar_emul_append (after_bfd, *files_to_move, verbose))
changed = TRUE;
next_file:;