This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "Fix" strip test failure


amodra@one.net.au writes:

> On Mon, Apr 30, 2001 at 10:46:18PM +0200, Andreas Jaeger wrote:
> > 
> > bucomm.o: In function `make_tempname':
> > /cvs/binutils-gdb-ln/binutils/bucomm.c:246: the use of `mktemp' is dangerous, better use `mkstemp'
> 
> Why don't we just heed the glibc warning, and use mkstemp if it's available?

That's the solution I tried first but I noticed that I don't know
enough about bfd to do it cleanly.

mkstemp opens the file also - and in bucomm we don't want an open
file.  If we would use mkstemp, we would need to change libbfd.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]