Use mkstemp() and handle /usr/lib64 in imake.c
authorDavid Cantrell <dcantrell@redhat.com>
Wed, 22 Aug 2012 01:51:56 +0000 (21:51 -0400)
committerDavid Cantrell <dcantrell@redhat.com>
Wed, 22 Aug 2012 01:51:56 +0000 (21:51 -0400)
commit16c57ad6690097ec6ed8b8995114bee1deb2fa7d
tree3e93e2e64aa2082fdd8a30d54857ac72edcf0093
parent6d46aca1b1b57d949d7a7bac56d3950eb024d16d
Use mkstemp() and handle /usr/lib64 in imake.c

tmpnam() usage replaced with mkstemp().  Find a suitable tmp directory
checking the TMPDIR environment variable first, then the P_tmpdir
macro and finally /tmp directly.

On 64-bit Linux platforms, check to see if libc.so exists in /usr/lib64.
If found, use it over /usr/lib/libc.so.
cde/config/imake/imake.c