summaryrefslogtreecommitdiffstats
path: root/eBones
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-01-23 22:54:08 +0000
committerwollman <wollman@FreeBSD.org>1995-01-23 22:54:08 +0000
commitfed608150966481fc89ff7d162a3aef3570d3120 (patch)
tree613e6800331f45ef2f0e0e7394403b9b0bbcb43b /eBones
parenta18673ce5ca769a4619f9fd40b4b6a48a308914d (diff)
downloadFreeBSD-src-fed608150966481fc89ff7d162a3aef3570d3120.zip
FreeBSD-src-fed608150966481fc89ff7d162a3aef3570d3120.tar.gz
Print out error messages from libkadm correctly (i.e., using com_err).
Diffstat (limited to 'eBones')
-rw-r--r--eBones/ksrvutil/ksrvutil.c6
-rw-r--r--eBones/usr.sbin/ksrvutil/ksrvutil.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/eBones/ksrvutil/ksrvutil.c b/eBones/ksrvutil/ksrvutil.c
index e240759..679d7e2 100644
--- a/eBones/ksrvutil/ksrvutil.c
+++ b/eBones/ksrvutil/ksrvutil.c
@@ -13,7 +13,7 @@ static char rcsid_ksrvutil_c[] =
"BonesHeader: /afs/athena.mit.edu/astaff/project/kerberos/src/kadmin/RCS/ksrvutil.c,v 4.1 89/09/26 09:33:49 jtkohl Exp ";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: ksrvutil.c,v 1.1 1995/01/20 22:38:30 wollman Exp $";
#endif lint
/*
@@ -37,6 +37,7 @@ static const char rcsid[] =
#include <errno.h>
#include <kadm.h>
#include <err.h>
+#include <com_err.h>
#ifdef NOENCRYPTION
#define read_long_pw_string placebo_read_pw_string
@@ -395,8 +396,7 @@ main(argc,argv)
key_vno++;
else {
(void) bcopy(old_key, new_key, sizeof(new_key));
- (void) fprintf(stderr, "%s: Key NOT changed: %s\n",
- argv[0], krb_err_txt[status]);
+ com_err(argv[0], status, ": key NOT changed");
change_this_key = FALSE;
}
}
diff --git a/eBones/usr.sbin/ksrvutil/ksrvutil.c b/eBones/usr.sbin/ksrvutil/ksrvutil.c
index e240759..679d7e2 100644
--- a/eBones/usr.sbin/ksrvutil/ksrvutil.c
+++ b/eBones/usr.sbin/ksrvutil/ksrvutil.c
@@ -13,7 +13,7 @@ static char rcsid_ksrvutil_c[] =
"BonesHeader: /afs/athena.mit.edu/astaff/project/kerberos/src/kadmin/RCS/ksrvutil.c,v 4.1 89/09/26 09:33:49 jtkohl Exp ";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: ksrvutil.c,v 1.1 1995/01/20 22:38:30 wollman Exp $";
#endif lint
/*
@@ -37,6 +37,7 @@ static const char rcsid[] =
#include <errno.h>
#include <kadm.h>
#include <err.h>
+#include <com_err.h>
#ifdef NOENCRYPTION
#define read_long_pw_string placebo_read_pw_string
@@ -395,8 +396,7 @@ main(argc,argv)
key_vno++;
else {
(void) bcopy(old_key, new_key, sizeof(new_key));
- (void) fprintf(stderr, "%s: Key NOT changed: %s\n",
- argv[0], krb_err_txt[status]);
+ com_err(argv[0], status, ": key NOT changed");
change_this_key = FALSE;
}
}
OpenPOWER on IntegriCloud