From: Derrick Brashear Date: Thu, 19 Jun 2003 17:17:20 +0000 (+0000) Subject: use-mkstemp-correctly-on-linux-20030619 X-Git-Tag: openafs-devel-1_3_50~179 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7f16752202c603eadb6d88ae4cee8b55e8c66436;p=packages%2Fo%2Fopenafs.git use-mkstemp-correctly-on-linux-20030619 FIXES 1603 might as well fix it all. --- diff --git a/src/butc/tcudbprocs.c b/src/butc/tcudbprocs.c index 070f345b3..7fc519232 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);