From: Theodore Tso Date: Fri, 30 Sep 1994 03:20:44 +0000 (+0000) Subject: If the prefix "FILE:" is not given, assume the default operations list X-Git-Tag: krb5-1.0-beta4.3~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cabd72f9388f24479cd3898f9be7548ed58137ff;p=krb5.git If the prefix "FILE:" is not given, assume the default operations list (whcih is krb5_kt_dfl_ops). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4402 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/keytab/ChangeLog b/src/lib/krb5/keytab/ChangeLog new file mode 100644 index 000000000..f12e82213 --- /dev/null +++ b/src/lib/krb5/keytab/ChangeLog @@ -0,0 +1,7 @@ +Thu Sep 29 23:19:06 1994 Theodore Y. Ts'o (tytso@dcl) + + * ktbase.c (krb5_kt_resolve_name): If the prefix "FILE:" is not + given, assume the default operations list (whcih is + krb5_kt_dfl_ops). + + diff --git a/src/lib/krb5/keytab/ktbase.c b/src/lib/krb5/keytab/ktbase.c index 774aac642..accca3254 100644 --- a/src/lib/krb5/keytab/ktbase.c +++ b/src/lib/krb5/keytab/ktbase.c @@ -78,8 +78,9 @@ krb5_error_code krb5_kt_resolve (name, ktid) int pfxlen; cp = strchr (name, ':'); - if (!cp) - return KRB5_KT_BADNAME; + if (!cp) { + return (krb5_kt_dfl_ops.resolve)(name, ktid); + } pfxlen = cp - (char *)name; resid = (char *)name + pfxlen + 1;