Commit ee25190e authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add win32 portsep

parent 01c6f659
......@@ -36,6 +36,12 @@
#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 ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment