From 7e3b399c894b9c4d8e106558a6b091fa7e852898 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 24 Jul 1996 22:03:31 +0000 Subject: [PATCH] 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 --- src/lib/krb5/keytab/file/ChangeLog | 6 ++++++ src/lib/krb5/keytab/file/ktf_g_name.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 */ -- 2.26.2