krb5/krb5-any-fixup-patch.txt
Nalin Dahyabhai 513d8d8504 - patch to make srvtab routines report missing-file errors at the same
point that the keytab routines do
2007-06-22 22:03:42 +00:00

23 lines
722 B
Plaintext

Index: kt_srvtab.c
===================================================================
RCS file: /afs/dev.mit.edu/source/repository/third/krb5/src/lib/krb5/keytab/kt_srvtab.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- kt_srvtab.c 27 Feb 2004 04:00:00 -0000 1.1.1.1
+++ kt_srvtab.c 27 Feb 2004 09:56:29 -0000 1.2
@@ -117,13 +117,6 @@
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);