krb5 commit: Fix kadmind debug printf to show kprop port

Greg Hudson ghudson at mit.edu
Fri Oct 7 11:10:23 EDT 2016


https://github.com/krb5/krb5/commit/29dc209a135bae4e15d328348c2dab73e1f2afce
commit 29dc209a135bae4e15d328348c2dab73e1f2afce
Author: Robbie Harwood <rharwood at redhat.com>
Date:   Thu Oct 6 14:40:14 2016 -0400

    Fix kadmind debug printf to show kprop port
    
    Previously, if kprop_port was set, the flags logged would not match the
    actual invocation of kprop.
    
    ticket: 8456

 src/kadmin/server/ipropd_svc.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/kadmin/server/ipropd_svc.c b/src/kadmin/server/ipropd_svc.c
index 76d3fda..bce668f 100644
--- a/src/kadmin/server/ipropd_svc.c
+++ b/src/kadmin/server/ipropd_svc.c
@@ -391,12 +391,15 @@ ipropx_resync(uint32_t vers, struct svc_req *rqstp)
 	    _exit(1);
 	}
 
-	DPRINT("%s: exec `kprop -r %s -f %s %s' ...\n",
-	       whoami, handle->params.realm, dump_file, clhost);
 	if (kprop_port != NULL) {
+	    DPRINT("%s: exec `kprop -r %s -f %s -P %s %s' ...\n",
+		   whoami, handle->params.realm, dump_file, kprop_port,
+		   clhost);
 	    pret = execl(kprop, "kprop", "-r", handle->params.realm, "-f",
 			 dump_file, "-P", kprop_port, clhost, NULL);
 	} else {
+	    DPRINT("%s: exec `kprop -r %s -f %s %s' ...\n",
+		   whoami, handle->params.realm, dump_file, clhost);
 	    pret = execl(kprop, "kprop", "-r", handle->params.realm, "-f",
 			 dump_file, clhost, NULL);
 	}


More information about the cvs-krb5 mailing list