Use mkstemp(), and fstat() the file to make sure that the mkstemp() implementation is setting sane file modes. Commit By: tlyu Revision: 20543 Changed Files: _U trunk/ U trunk/src/lib/krb5/rcache/rc_io.c