[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: revision 70 - trunk

From: Branko Čibej <brane_at_xbc.nu>
Date: 2001-09-08 14:38:18 CEST

By the way, I have a local mod here to make this work:

--- subversion/libsvn_subr/SVN/text-base/path.c Fri Aug 31 23:29:40 2001
+++ subversion/libsvn_subr/path.c Sat Sep 8 12:58:20 2001
@@ -95,7 +95,13 @@ add_component_internal (svn_stringbuf_t
                         size_t len,
                         enum svn_path_style style)
 {
- char dirsep = get_separator_from_style (style);
+ char dirsep;
+
+ /* FIXME: Don't ever add a single dot to the path. */
+ if (len == 1 && *component == '.')
+ return;
+
+ dirsep = get_separator_from_style (style);

   if (! svn_stringbuf_isempty (path))
     svn_stringbuf_appendbytes (path, &dirsep, sizeof (dirsep));

That's because the Win32 functions used by APR die if they get a path
ending in '\.'. Don't ask me why.

I'm not going to commit this because it would probably break things on
Unix, if the original path happens to be a symlink to a directory. I
think this is an APR problem and should be fixed there.

-- 
Brane �ibej   <brane_at_xbc.nu>            http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:40 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.