From 16912cfe6083ab2615ed29c5848037815039b118 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Sun, 14 Aug 1994 04:40:48 +0000 Subject: [PATCH] fix some broken error fprintfs move MAXPATHLEN check until after includes that might set it... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4136 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/client/kadmin.c | 5 +++-- src/kadmin/client/kadmin_msnd.c | 9 ++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/kadmin/client/kadmin.c b/src/kadmin/client/kadmin.c index 50f5c2736..c7f48fcf5 100644 --- a/src/kadmin/client/kadmin.c +++ b/src/kadmin/client/kadmin.c @@ -169,7 +169,7 @@ main(argc,argv) (void) sprintf(cache_name, "FILE:/tmp/tkt_adm_%d", getpid()); if ((retval = krb5_cc_resolve(cache_name, &cache))) { - fprintf(stderr, "Unable to Resolve Cache: !\n", cache_name); + fprintf(stderr, "Unable to Resolve Cache: %s!\n", cache_name); } if ((retval = krb5_cc_initialize(cache, client))) { @@ -565,7 +565,8 @@ OLDDECLARG(krb5_principal, client) client->realm.data, /* instance is */ 0))) { - fprintf(stderr, "Error %s while building client name!\n"); + fprintf(stderr, "Error %s while building client name!\n", + error_message(retval)); krb5_free_addresses(my_addresses); return(1); } diff --git a/src/kadmin/client/kadmin_msnd.c b/src/kadmin/client/kadmin_msnd.c index e0d990448..d81f1327a 100644 --- a/src/kadmin/client/kadmin_msnd.c +++ b/src/kadmin/client/kadmin_msnd.c @@ -35,10 +35,6 @@ static char rcsid_kadmin[] = #include #include -#ifndef MAXPATHLEN -#define MAXPATHLEN 1024 -#endif - #include #include @@ -63,6 +59,10 @@ static char rcsid_kadmin[] = #include #include +#ifndef MAXPATHLEN +#define MAXPATHLEN 1024 +#endif + krb5_error_code kadm_snd_mod(my_creds, rep_ret, local_addr, foreign_addr, local_socket, seqno) krb5_creds *my_creds; @@ -78,7 +78,6 @@ krb5_int32 *seqno; char version[10]; int value; int valid_command; - extern int errno; int i; for ( ; ; ) { -- 2.26.2