Use the error code KRB5_KT_NAME_TOOLONG instead of ENAMETOOLONG, which
authorTheodore Tso <tytso@mit.edu>
Wed, 24 Jul 1996 22:03:31 +0000 (22:03 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 24 Jul 1996 22:03:31 +0000 (22:03 +0000)
isn't portable.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8803 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/keytab/file/ChangeLog
src/lib/krb5/keytab/file/ktf_g_name.c

index 39c3974343c17f781923f32a171756d9c941d10b..c37f70950b11b08c6e6b6629cd8ff5de793afbbb 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jul 24 17:10:11 1996  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * 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  <marc@mit.edu>
 
        * ktf_g_name.c (krb5_ktfile_get_name): include the prefix in the
index dd8aadc7435a94a98d0862e6c54aaff87624cd7a..fadb9bc94aedf85f9f83b0a3aaa612119c8a976a 100644 (file)
@@ -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 */