From d3fafb16b2ca03bd27d0488c3020f4f93be82d39 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 22 Feb 2003 01:14:24 +0000 Subject: [PATCH] Fix ITS#2319, use "," comma to delimit port number in rej filename on Windows instead of ":" colon. --- servers/slurpd/reject.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/servers/slurpd/reject.c b/servers/slurpd/reject.c index 62a4df4f96..0b4d5ee12e 100644 --- a/servers/slurpd/reject.c +++ b/servers/slurpd/reject.c @@ -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 ) { -- 2.39.5