From: Derrick Brashear Date: Thu, 19 Jun 2003 17:19:14 +0000 (+0000) Subject: STABLE12-use-mkstemp-correctly-on-linux-20030619 X-Git-Tag: openafs-stable-1_2_10~37 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7baf890c2912dc62a82408a46546148c604250da;p=packages%2Fo%2Fopenafs.git STABLE12-use-mkstemp-correctly-on-linux-20030619 FIXES 1603 might as well fix it all. (cherry picked from commit 7f16752202c603eadb6d88ae4cee8b55e8c66436) --- diff --git a/src/butc/tcudbprocs.c b/src/butc/tcudbprocs.c index aa0937de0..c3d3b86ff 100644 --- a/src/butc/tcudbprocs.c +++ b/src/butc/tcudbprocs.c @@ -1390,9 +1390,7 @@ restoreText(tapeInfo, rstTapeInfoPtr, nextHeader) /* open the text file */ sprintf(filename, "%s/bu_XXXXXX", gettmpdir()); -#if defined (AFS_LINUX20_ENV) - fid = open(mkstemp(filename), O_RDWR|O_CREAT|O_EXCL, 0600); -#elif defined (HAVE_MKSTEMP) +#if defined (HAVE_MKSTEMP) fid = mkstemp(filename); #else fid = open(mktemp(filename), O_RDWR|O_CREAT|O_EXCL, 0600);