[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r4145 - trunk/OpenDNSSEC/enforcer/utils

Rickard Bellgrim rickard.bellgrim at iis.se
Fri Oct 29 00:19:40 CEST 2010


Author: rb
Date: 2010-10-29 00:19:40 +0200 (Fri, 29 Oct 2010)
New Revision: 4145

Modified:
   trunk/OpenDNSSEC/enforcer/utils/ksmutil.c
Log:
We also need a port here


Modified: trunk/OpenDNSSEC/enforcer/utils/ksmutil.c
===================================================================
--- trunk/OpenDNSSEC/enforcer/utils/ksmutil.c	2010-10-28 21:28:10 UTC (rev 4144)
+++ trunk/OpenDNSSEC/enforcer/utils/ksmutil.c	2010-10-28 22:19:40 UTC (rev 4145)
@@ -553,13 +553,17 @@
     }
     else {
         /* MySQL setup */
-        /* will look like: <SQL_BIN> -u <USER> -h <HOST> -p<PASSWORD> <DBSCHEMA> < <SQL_SETUP> */
+        /* will look like: <SQL_BIN> -u <USER> -h <HOST> -P <PORT> -p<PASSWORD> <DBSCHEMA> < <SQL_SETUP> */
         StrAppend(&setup_command, SQL_BIN);
         StrAppend(&setup_command, " -u ");
         StrAppend(&setup_command, user);
         if (host != NULL) {
             StrAppend(&setup_command, " -h ");
             StrAppend(&setup_command, host);
+            if (port != NULL) {
+                StrAppend(&setup_command, " -P ");
+                StrAppend(&setup_command, port);
+            }
         }
         if (password != NULL) {
             StrAppend(&setup_command, " -p");




More information about the Opendnssec-commits mailing list