# HG changeset patch
# User insilmaril
# Date 1143117534 0
# Node ID 5da693c51f10b45e948f33c118ce05533f2508e8
# Parent  d3080e02b13a47f4ae0660c0cd3161f23747051c
Version 1.7.12

diff -r d3080e02b13a -r 5da693c51f10 file.cpp
--- a/file.cpp	Thu Mar 23 12:38:54 2006 +0000
+++ b/file.cpp	Thu Mar 23 12:38:54 2006 +0000
@@ -44,9 +44,10 @@
 			d=d.right (d.length()-i-1);
 		}
 
+		// Now take care of paths where we have to go back first
 		int srcsep=s.contains("/");
 		int dstsep=d.contains("/");
-		if (srcsep >=  dstsep )
+		if (srcsep <=  dstsep )
 		{
 			// find path to go up first and then back to dst
 			i=1;