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
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)->
#ifdef OPENCLOSE
close(((krb5_fcc_data *) id->data)->fd);
#endif
+
+ return KRB5_OK;
}
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);
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;
}