[krbdev.mit.edu #9190] git commit

Greg Hudson via RT rt at krbdev.mit.edu
Tue Jan 27 23:49:12 EST 2026


<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9190 >


Make atomic ccache replacement work on Windows

Commit 371f09d4bf4ca0c7ba15c5ef909bc35307ed9cc3 relies on POSIX
rename() semantics for atomic ccache replacement.  Windows rename()
fails if the destination file exists.  Add a fallback to ReplaceFile()
when this happens.  We may be able to do better using
FILE_RENAME_FLAG_POSIX_SEMANTICS (added in Windows 10 update 1067) but
this should generally suffice.

[ghudson at mit.edu: simplified code slightly; rewrote commit message]

(cherry picked from commit 04816024aadbfd64b5306942e2dfbd757cb05f93)

https://github.com/krb5/krb5/commit/de93bb35195d03c822afb3c8bad93ae9dde9055d
Author: YUBI LEE <eubnara at gmail.com>
Committer: Greg Hudson <ghudson at mit.edu>
Commit: de93bb35195d03c822afb3c8bad93ae9dde9055d
Branch: krb5-1.22
 src/lib/krb5/ccache/cc_file.c | 8 ++++++++
 1 file changed, 8 insertions(+)



More information about the krb5-bugs mailing list