From ba4543679145a29edd8dc3fa2fc22a4b07bc6a57 Mon Sep 17 00:00:00 2001 From: Barry Jaspan Date: Fri, 19 Jan 1990 18:10:29 +0000 Subject: [PATCH] added problems that Saber should hav reported the last time. I mean, FIXED problems that Saber should have reported. I'm tired. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@151 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/file/fcc_destry.c | 4 +++- src/lib/krb5/ccache/file/fcc_gprin.c | 9 ++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/ccache/file/fcc_destry.c b/src/lib/krb5/ccache/file/fcc_destry.c index 659f68983..52c91538c 100644 --- a/src/lib/krb5/ccache/file/fcc_destry.c +++ b/src/lib/krb5/ccache/file/fcc_destry.c @@ -31,7 +31,7 @@ krb5_error_code krb5_fcc_destroy(id) struct stat buf; unsigned long size; char zeros[BUFSIZ]; - int ret; + int ret, i; #ifdef OPENCLOSE ((krb5_fcc_data *) id->data)->fd = open(((krb5_fcc_data *) id->data)-> @@ -60,4 +60,6 @@ krb5_error_code krb5_fcc_destroy(id) #ifdef OPENCLOSE close(((krb5_fcc_data *) id->data)->fd); #endif + + return KRB5_OK; } diff --git a/src/lib/krb5/ccache/file/fcc_gprin.c b/src/lib/krb5/ccache/file/fcc_gprin.c index 4f8e7d61a..c4dc97a09 100644 --- a/src/lib/krb5/ccache/file/fcc_gprin.c +++ b/src/lib/krb5/ccache/file/fcc_gprin.c @@ -35,6 +35,7 @@ krb5_fcc_get_principal(id, princ) krb5_ccache id; krb5_principal *princ; { + krb5_error_code kret; #ifdef OPENCLOSE ((krb5_fcc_data *) id->data)->fd = open(((krb5_fcc_data *) id->data)-> filename, O_RDONLY, 0); @@ -44,7 +45,13 @@ krb5_fcc_get_principal(id, princ) lseek(((krb5_fcc_data *) id->data)->fd, 0, L_SET); #endif - return (krb5_fcc_read_principal(princ)); + kret = krb5_fcc_read_principal(id, princ); + +#ifdef OPENCLOSE + close(((krb5_fcc_data *) id->data)->fd); +#endif + + return kret; } -- 2.26.2