Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
ee25190e
Commit
ee25190e
authored
Feb 24, 2003
by
Kurt Zeilenga
Browse files
Add win32 portsep
parent
01c6f659
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slurpd/reject.c
View file @
ee25190e
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment