don't check for readability resolving SRVTAB: keytab
authorKen Raeburn <raeburn@mit.edu>
Thu, 31 May 2007 15:56:49 +0000 (15:56 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 31 May 2007 15:56:49 +0000 (15:56 +0000)
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

src/lib/krb5/keytab/kt_srvtab.c

index d96cf16617d8930bf12e3b7815fdf5eb406e0a54..5a80f32f92b0c0ffa1946add7c22e8bb7a42177b 100644 (file)
@@ -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);