From: Steve Chamberlain Date: Wed, 17 Apr 1991 00:56:25 +0000 (+0000) Subject: Changed bad call of fstat to stat X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a525d0c6c5a1f6bd1dfe02070e6cdba5bf015fe;p=binutils-gdb.git Changed bad call of fstat to stat --- diff --git a/bfd/archive.c b/bfd/archive.c index bd28af2b8b1..7f406361019 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);