=== modified file 'subversion/libsvn_subr/path.c'
--- subversion/libsvn_subr/path.c	2008-06-13 10:43:20 +0000
+++ subversion/libsvn_subr/path.c	2008-06-22 00:55:30 +0000
@@ -1310,7 +1310,7 @@
     }
 
   /* Remove the trailing slash if necessary. */
-  if (*(dst - 1) == '/')
+  if (dst > canon && *(dst - 1) == '/')
     {
       /* If we had any path components, we always remove the trailing slash. */
       if (canon_segments > 0)


