From 427d52308ded9fd7da22c49e1b87ec66a4f2be17 Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Thu, 18 Oct 2007 15:23:36 +0000
Subject: [PATCH] Fix 2416 - authentication pb when setting replication on windows
---
opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java b/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
index dbc4c63..2c1bf05 100644
--- a/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
+++ b/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
@@ -44,7 +44,7 @@
// The current number of entries exported
long numExportedEntries;
-
+ static String newline = System.getProperty("line.separator");
String entryBuffer = "";
/**
@@ -81,7 +81,8 @@
{
// if we have the bytes for an entry, let's make an entry and send it
String ebytes = new String(b,startOfEntryIndex,bytesToRead);
- endOfEntryIndex = ebytes.indexOf("\n\n");
+ endOfEntryIndex = ebytes.indexOf(newline + newline);
+
if ( endOfEntryIndex >= 0 )
{
--
Gitblit v1.10.0