From: Theodore Tso Date: Wed, 24 Jul 1996 22:03:31 +0000 (+0000) Subject: Use the error code KRB5_KT_NAME_TOOLONG instead of ENAMETOOLONG, which X-Git-Tag: krb5-1.0-beta7~279 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e3b399c894b9c4d8e106558a6b091fa7e852898;p=krb5.git Use the error code KRB5_KT_NAME_TOOLONG instead of ENAMETOOLONG, which isn't portable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8803 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/keytab/file/ChangeLog b/src/lib/krb5/keytab/file/ChangeLog index 39c397434..c37f70950 100644 --- a/src/lib/krb5/keytab/file/ChangeLog +++ b/src/lib/krb5/keytab/file/ChangeLog @@ -1,3 +1,9 @@ +Wed Jul 24 17:10:11 1996 Theodore Y. Ts'o + + * ktf_g_name.c (krb5_ktfile_get_name): Use the error code + KRB5_KT_NAME_TOOLONG instead of ENAMETOOLONG, which isn't + portable. + Fri Jul 12 21:16:50 1996 Marc Horowitz * ktf_g_name.c (krb5_ktfile_get_name): include the prefix in the diff --git a/src/lib/krb5/keytab/file/ktf_g_name.c b/src/lib/krb5/keytab/file/ktf_g_name.c index dd8aadc74..fadb9bc94 100644 --- a/src/lib/krb5/keytab/file/ktf_g_name.c +++ b/src/lib/krb5/keytab/file/ktf_g_name.c @@ -43,7 +43,7 @@ krb5_ktfile_get_name(context, id, name, len) memset(name, 0, len); if (len < strlen(id->ops->prefix)+2) - return(ENAMETOOLONG); + return(KRB5_KT_NAME_TOOLONG); strcpy(name, id->ops->prefix); name += strlen(id->ops->prefix); name[0] = ':'; @@ -51,7 +51,7 @@ krb5_ktfile_get_name(context, id, name, len) len -= strlen(id->ops->prefix)+1; if (len < strlen(KTFILENAME(id)+1)) - return(ENAMETOOLONG); + return(KRB5_KT_NAME_TOOLONG); strcpy(name, KTFILENAME(id)); /* strcpy will NUL-terminate the destination */