krb5_fcc_generate_new() doesn't work with mkstemp()
authorTom Yu <tlyu@mit.edu>
Sat, 4 Aug 2007 00:02:42 +0000 (00:02 +0000)
committerTom Yu <tlyu@mit.edu>
Sat, 4 Aug 2007 00:02:42 +0000 (00:02 +0000)
commitcfd6f865ed96690624eca24a29831ce52694a78f
tree40c3798b1c533d14862c655652075a2530ef750b
parent55f4c399add47810188584895035f78d8d0989a9
krb5_fcc_generate_new() doesn't work with mkstemp()

If mkstemp() is available, the new ccache file gets created but the
subsequent open(O_CREAT|O_EXCL) call fails because the file was
already created by mkstemp().  Apply patch from Apple to keep the file
descriptor open.

ticket: new
tags: pullup
target_version: 1.6.3
component: krb5-libs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19749 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/ccache/cc_file.c