]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix kadmind debug printf to show kprop port
authorRobbie Harwood <rharwood@redhat.com>
Thu, 6 Oct 2016 18:40:14 +0000 (14:40 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 7 Oct 2016 14:56:52 +0000 (10:56 -0400)
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

index 76d3fdad0fca3df9ac518e1e4cda04bc01edbf8c..bce668f4221ac55194d5b891ffad0a685cdb536e 100644 (file)
@@ -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);
        }