[27073] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Send kpropd debug msgs to stderr

daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon Oct 8 11:50:25 2012

Date: Mon, 8 Oct 2012 11:50:22 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-Id: <201210081550.q98FoM0o022608@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/f26cad9488966e1f58ae824cadad65e4f7035ae2
commit f26cad9488966e1f58ae824cadad65e4f7035ae2
Author: Nicolas Williams <nico@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);
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post