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.
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`