From 5083f9006a258e4df30ae2a8e2a6a19d9023a9b6 Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Tue, 16 Feb 2010 08:40:50 +0000
Subject: [PATCH] LMS-1389 canonicalize file path only for local files

SVN: 14749
---
 .../highwatermark/HostAwareFileWithHighwaterMark.java       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/source/java/ch/systemsx/cisd/common/highwatermark/HostAwareFileWithHighwaterMark.java b/common/source/java/ch/systemsx/cisd/common/highwatermark/HostAwareFileWithHighwaterMark.java
index 4d6a156ee48..87d01497cbf 100644
--- a/common/source/java/ch/systemsx/cisd/common/highwatermark/HostAwareFileWithHighwaterMark.java
+++ b/common/source/java/ch/systemsx/cisd/common/highwatermark/HostAwareFileWithHighwaterMark.java
@@ -129,7 +129,7 @@ public final class HostAwareFileWithHighwaterMark extends HostAwareFile
             } else
             {
                 rsyncModuleOrNull = null;
-                file = getCanonicalFile(hostFile.substring(index + 1));
+                file = new File(hostFile.substring(index + 1));
             }
         } else
         {
@@ -139,8 +139,8 @@ public final class HostAwareFileWithHighwaterMark extends HostAwareFile
         final long highwaterMarkInKb =
                 PropertyUtils.getLong(properties, hostFilePropertyKey.concat(SEP).concat(
                         HIGHWATER_MARK_PROPERTY_KEY), -1L);
-        return new HostAwareFileWithHighwaterMark(hostNameOrNull, file,
-                rsyncModuleOrNull, highwaterMarkInKb);
+        return new HostAwareFileWithHighwaterMark(hostNameOrNull, file, rsyncModuleOrNull,
+                highwaterMarkInKb);
     }
 
     private static File getCanonicalFile(final String hostFile)
-- 
GitLab