]> git.sur5r.net Git - openldap/commitdiff
Add win32 portsep
authorKurt Zeilenga <kurt@openldap.org>
Mon, 24 Feb 2003 17:11:14 +0000 (17:11 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 24 Feb 2003 17:11:14 +0000 (17:11 +0000)
servers/slurpd/reject.c

index 130b828d1ee3caaa15dacb1114f5aa02d1e0944c..ba551c161f0b0aabbe68df6e2b26811cc494217b 100644 (file)
 #include "slurp.h"
 #include "globals.h"
 
+#ifdef _WIN32
+#define        PORTSEP ","
+#else
+#define        PORTSEP ":"
+#endif
+
 /*
  * Write a replication record to a reject file.  The reject file has the
  * same name as the replica's private copy of the file but with ".rej"
@@ -57,7 +63,7 @@ write_reject(
     int                rc;
 
     ldap_pvt_thread_mutex_lock( &sglob->rej_mutex );
-    snprintf( rejfile, sizeof rejfile, "%s" LDAP_DIRSEP "%s:%d.rej",
+    snprintf( rejfile, sizeof rejfile, "%s" LDAP_DIRSEP "%s" PORTSEP "%d.rej",
                sglob->slurpd_rdir, ri->ri_hostname, ri->ri_port );
 
     if ( access( rejfile, F_OK ) < 0 ) {