Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139386 - tempfile of debianutils-2.15-r1 uses tempnam
Summary: tempfile of debianutils-2.15-r1 uses tempnam
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Security
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-05 21:23 UTC by Brant Gurganus
Modified: 2006-07-05 21:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brant Gurganus 2006-07-05 21:23:36 UTC
When building debianutils-2.15-r1, there is a linker message of:

i686-pc-linux-gnu-gcc  -O3 -march=pentium4m -mtune=pentium4m -mfpmath=sse -maccumulate-outgoing-args -ffast-math -ggdb3 -pipe  -Wl,-O1,--sort-common,--as-needed -o tempfile  tempfile.o
tempfile.o: In function `main':
/var/tmp/portage/debianutils-2.15-r1/work/debianutils-2.15/tempfile.c:113: warning: the use of `tempnam' is dangerous, better use `mkstemp'

The man page for tempnam also says not use it in preference of mkstemp.
Comment 1 SpanKY gentoo-dev 2006-07-05 21:29:24 UTC
except that it's done this way on purpose and considering the tempfile utility, changing it from tempnam to mkstemp or whatever will have no real difference on the scripts that utilize `tempfile`