From: Ken Raeburn Date: Thu, 31 May 2007 15:56:49 +0000 (+0000) Subject: don't check for readability resolving SRVTAB: keytab X-Git-Tag: krb5-1.7-alpha1~1101 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=66bd29f512b9bdd5e808d645118862112973d2d6;p=krb5.git don't check for readability resolving SRVTAB: keytab Greg Hudson has pointed out that the FILE: and SRVTAB: keytab types differ in when they report errors for files not existing. The implementations of ANY: floating around cope better if they consistently accept names of files that aren't present, and report the error later when fetching information. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19563 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/keytab/kt_srvtab.c b/src/lib/krb5/keytab/kt_srvtab.c index d96cf1661..5a80f32f9 100644 --- a/src/lib/krb5/keytab/kt_srvtab.c +++ b/src/lib/krb5/keytab/kt_srvtab.c @@ -116,13 +116,6 @@ static krb5_error_code KRB5_CALLCONV krb5_ktsrvtab_resolve(krb5_context context, const char *name, krb5_keytab *id) { krb5_ktsrvtab_data *data; - FILE *fp; - - /* Make sure we can open the srvtab file for reading. */ - fp = fopen(name, "r"); - if (!fp) - return(errno); - fclose(fp); if ((*id = (krb5_keytab) malloc(sizeof(**id))) == NULL) return(ENOMEM);