(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))) {
client->realm.data,
/* instance is <realm> */
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);
}
#include <string.h>
#include <com_err.h>
-#ifndef MAXPATHLEN
-#define MAXPATHLEN 1024
-#endif
-
#include <sys/param.h>
#include <pwd.h>
#include <krb5/kdb5_err.h>
#include <krb5/krb5_err.h>
+#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;
char version[10];
int value;
int valid_command;
- extern int errno;
int i;
for ( ; ; ) {