[114] in Kerberos_V5_Development
Re: file-based cred cache
raeburn@ATHENA.MIT.EDU (raeburn@ATHENA.MIT.EDU)
Sat Jan 20 00:29:24 1990
I'd suggest conditionalizing the stdio version. There are some
UNIX-isms which we will need that aren't provided by stdio alone. For
example, how do you create a file which no one else can read?
You have to use umask before creating the file, because fopen doesn't
give you the "mode" parameter, and using chmod afterwards leaves a
short window in which another (unfriendly) process could get a file
descriptor open.
How do you force creation of a file rather than opening of an existing
file? You can use unlink before fopen, but again, there's a small
window in which another process can do something unfriendly.