summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2007-06-20 03:53:37 +0000
committerKen Raeburn <raeburn@mit.edu>2007-06-20 03:53:37 +0000
commit56da8ce661eaf5b6555db9be3a572cf27ce8894f (patch)
tree3c8aab6089766c909fb4bf222e2bbda438056143 /src/lib
parent86e638b30cb0c56e9d0fd0b213be0696191eb297 (diff)
downloadkrb5-56da8ce661eaf5b6555db9be3a572cf27ce8894f.tar.gz
krb5-56da8ce661eaf5b6555db9be3a572cf27ce8894f.tar.xz
krb5-56da8ce661eaf5b6555db9be3a572cf27ce8894f.zip
Move (BSD-licensed) mkstemp from libdb2 to libkrb5support, and rename
the function to krb5int_mkstemp. Generate the symbol export list for libkrb5support at build time. Declare krb5int_mkstemp in k5-platform.h. Change cc_file.c to use mkstemp unconditionally. Make libdb2.so (built for testing only) link against the libkrb5support, and use krb5int_mkstemp if mkstemp is not available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19600 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/ccache/cc_file.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c
index 84d278765a..2858323317 100644
--- a/src/lib/krb5/ccache/cc_file.c
+++ b/src/lib/krb5/ccache/cc_file.c
@@ -1964,14 +1964,10 @@ krb5_fcc_generate_new (krb5_context context, krb5_ccache *id)
(void) strcpy(scratch, TKT_ROOT);
(void) strcat(scratch, "XXXXXX");
-#ifdef HAVE_MKSTEMP
ret = mkstemp(scratch);
if (ret == -1) {
return krb5_fcc_interpret(context, errno);
} else close(ret);
-#else /*HAVE_MKSTEMP*/
- mktemp(scratch);
-#endif
lid->data = (krb5_pointer) malloc(sizeof(krb5_fcc_data));
if (lid->data == NULL) {