git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
1f3990e
)
use-mkstemp-correctly-on-linux-20030619
author
Derrick Brashear
<shadow@dementia.org>
Thu, 19 Jun 2003 17:17:20 +0000 (17:17 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Thu, 19 Jun 2003 17:17:20 +0000 (17:17 +0000)
FIXES 1603
might as well fix it all.
src/butc/tcudbprocs.c
patch
|
blob
|
history
diff --git
a/src/butc/tcudbprocs.c
b/src/butc/tcudbprocs.c
index
070f345
..
7fc5192
100644
(file)
--- 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);