krb5 commit: Send kpropd debug msgs to stderr
Greg Hudson
ghudson at MIT.EDU
Mon Oct 8 11:50:22 EDT 2012
https://github.com/krb5/krb5/commit/f26cad9488966e1f58ae824cadad65e4f7035ae2
commit f26cad9488966e1f58ae824cadad65e4f7035ae2
Author: Nicolas Williams <nico at cryptonector.com>
Date: Fri Sep 21 22:10:39 2012 -0500
Send kpropd debug msgs to stderr
src/slave/kpropd.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c
index 367380e..770ade4 100644
--- a/src/slave/kpropd.c
+++ b/src/slave/kpropd.c
@@ -489,7 +489,7 @@ void doit(fd)
host, sizeof(host), NULL, 0, 0) == 0) {
syslog(LOG_INFO, _("Connection from %s"), host);
if (debug)
- printf("Connection from %s\n", host);
+ fprintf(stderr, "Connection from %s\n", host);
}
/*
@@ -1367,7 +1367,8 @@ kerberos_authenticate(context, fd, clientp, etype, my_sin)
exit(1);
}
- printf(_("authenticated client: %s (etype == %s)\n"), name, etypebuf);
+ fprintf(stderr, _("authenticated client: %s (etype == %s)\n"),
+ name, etypebuf);
free(name);
}
@@ -1655,7 +1656,7 @@ load_database(context, kdb_util, database_file_name)
kdb_log_context *log_ctx;
if (debug)
- printf("calling kdb5_util to load database\n");
+ fprintf(stderr, "calling kdb5_util to load database\n");
log_ctx = context->kdblog_context;
@@ -1687,7 +1688,7 @@ load_database(context, kdb_util, database_file_name)
/*NOTREACHED*/
default:
if (debug)
- printf("Child PID is %d\n", child_pid);
+ fprintf(stderr, "Load PID is %d\n", child_pid);
if (wait(&waitb) < 0) {
com_err(progname, errno, _("while waiting for %s"), kdb_util);
exit(1);
More information about the cvs-krb5
mailing list