aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-04-17 00:56:25 +0000
committerSteve Chamberlain <steve@cygnus>1991-04-17 00:56:25 +0000
commit2a525d0c6c5a1f6bd1dfe02070e6cdba5bf015fe (patch)
treea5066af100504bc3b62dbfa7e0229fa80593f6d9 /bfd/archive.c
parent1f4d3c7911d227a9a74867be3d58db56f853d7c4 (diff)
downloadgdb-2a525d0c6c5a1f6bd1dfe02070e6cdba5bf015fe.zip
gdb-2a525d0c6c5a1f6bd1dfe02070e6cdba5bf015fe.tar.gz
gdb-2a525d0c6c5a1f6bd1dfe02070e6cdba5bf015fe.tar.bz2
Changed bad call of fstat to stat
Diffstat (limited to 'bfd/archive.c')
-rw-r--r--bfd/archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index bd28af2..7f40636 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -1111,7 +1111,7 @@ bsd_write_armap (arch, elength, map, orl_count, stridx)
firstreal = mapsize + elength + sizeof (struct ar_hdr) + SARMAG;
- fstat (arch->iostream, &statbuf); /* FIXME -- descriptor must be open! */
+ stat (arch->filename, &statbuf);
memset ((char *)(&hdr), 0, sizeof (struct ar_hdr));
sprintf (hdr.ar_name, "__.SYMDEF");
sprintf (hdr.ar_size, "%-10d", (int) mapsize);