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. Commit By: tlyu Revision: 19749 Changed Files: _U trunk/ U trunk/src/lib/krb5/ccache/cc_file.c