there's a symbolic link lurking about. (We should do an exclusive
open then, but there's no such thing in stdio.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7244
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu Dec 21 18:33:39 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * scc_maybe.c (krb5_scc_open_file): In the case of
+ SCC_OPEN_AND_ERASE, unlink the filename first, in case
+ there's a symbolic link lurking about. (We should do an
+ exclusive open then, but there's no such thing in stdio.)
+
Mon Sep 25 16:56:51 1995 Theodore Y. Ts'o <tytso@dcl>
* Makefile.in: Removed "foo:: foo-$(WHAT)" lines from the
#ifdef ANSI_STDIO
switch(mode) {
case SCC_OPEN_AND_ERASE:
+ unlink(data->filename);
+ /* XXX should do an exclusive open here, but no way to do */
+ /* this under stdio */
open_flag = "wb+";
break;
case SCC_OPEN_RDWR:
#else
switch(mode) {
case SCC_OPEN_AND_ERASE:
+ unlink(data->filename);
+ /* XXX should do an exclusive open here, but no way to do */
+ /* this under stdio */
open_flag = "w+";
break;
case SCC_OPEN_RDWR: