From d00fd58d9c7ba6f8a969c99dc0086315ef9dae03 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Tue, 25 Apr 2000 21:49:20 +0000 Subject: [PATCH] (fcc_initialize): just forget about over-writing the old cred cache. it's too much of a hazzle trying to do this safely. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8199 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/fcache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/krb5/fcache.c b/lib/krb5/fcache.c index 0946f7666..b4a7bfe70 100644 --- a/lib/krb5/fcache.c +++ b/lib/krb5/fcache.c @@ -170,8 +170,7 @@ fcc_initialize(krb5_context context, int fd; char *filename = f->filename; - if((ret = erase_file(filename))) - return ret; + unlink (filename); fd = open(filename, O_RDWR | O_CREAT | O_EXCL | O_BINARY, 0600); if(fd == -1)