Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 105819

Summary: sys-devel/binutils-2.16.1 mktemp warning patch
Product: Gentoo Linux Reporter: Chris White (RETIRED) <chriswhite>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: binutils-2.16.1-mktemp.patch

Description Chris White (RETIRED) gentoo-dev 2005-09-13 09:30:23 UTC
While compiling binutils one day I noticed several spewed warnings about using 
mktemp instead of mkstemp.  That said, I went in and produced a patch 
(attaching after this) to revert all the mktemp's to mkstemp's (in bucomm.c, 
the only file that seems to have the issue).  Interestingly enough the 
configure does check for mkstemp_s_.
Comment 1 Chris White (RETIRED) gentoo-dev 2005-09-13 09:30:58 UTC
Created attachment 68370 [details, diff]
binutils-2.16.1-mktemp.patch

The patch.
Comment 2 SpanKY gentoo-dev 2005-09-16 08:23:41 UTC
the fix isnt that simple

mktemp and mkstemp dont behave the same ... one returns a filename, the other
returns an open file descriptor

*** This bug has been marked as a duplicate of 88358 ***