From: Bill Sommerfeld Date: Tue, 30 Jan 1990 02:44:18 +0000 (+0000) Subject: Unlink credential cache file X-Git-Tag: krb5-1.0-alpha2~1189 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b251cfd60285fab73c2a2e5fefdb65ee482c71d9;p=krb5.git Unlink credential cache file git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@194 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/file/fcc_destry.c b/src/lib/krb5/ccache/file/fcc_destry.c index 596c4c6a6..3b6c584d0 100644 --- a/src/lib/krb5/ccache/file/fcc_destry.c +++ b/src/lib/krb5/ccache/file/fcc_destry.c @@ -41,7 +41,10 @@ krb5_error_code krb5_fcc_destroy(id) #else lseek(((krb5_fcc_data *) id->data)->fd, 0, L_SET); #endif - + ret = unlink(((krb5_fcc_data *) id->data)->filename); + if (ret < 0) + return errno; + ret = fstat(((krb5_fcc_data *) id->data)->fd, &buf); if (ret < 0) return errno;