projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f4d3c7
)
Changed bad call of fstat to stat
author
Steve Chamberlain
<steve@cygnus>
Wed, 17 Apr 1991 00:56:25 +0000
(
00:56
+0000)
committer
Steve Chamberlain
<steve@cygnus>
Wed, 17 Apr 1991 00:56:25 +0000
(
00:56
+0000)
bfd/archive.c
patch
|
blob
|
history
diff --git
a/bfd/archive.c
b/bfd/archive.c
index bd28af2b8b10363b806b6991fd739f17adf71bfb..7f40636101911a64e8c209dbe3f65f50235d6272 100644
(file)
--- 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);