* rc_io.c (krb5_rc_io_creat): Make cleanup code easier to read.
(krb5_rc_io_open_internal): Include code previously in
krb5_rc_open(). Add a new full pathname parameter so that a file
can be opened by its full pathname. Make cleanup code easier to
read.
(krb5_rc_io_open): Call krb5_rc_io_open_internal().
(krb5_rc_io_move): Fix Windows implementation so that it works
where it is used (only called by krb5_rc_dfl_expunge()).
(krb5_rc_io_sync): Fix function header to comply with coding
standard. Add implementation for Windows.
(krb5_rc_io_close): Close file descriptor only if it is not -1.
Set file descriptor to -1 if it is successfully closed.
* rc_dfl.c (krb5_rc_dfl_close_no_free): Leave file descriptor
check for krb5_rc_io_close().
(krb5_rc_dfl_expunge): Do better resource cleanup on error.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13471
dc483132-0cff-0310-8789-
dd5450dbe970