You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2010/11/25 19:51:34 UTC

svn commit: r1039140 - /subversion/trunk/subversion/svn/update-cmd.c

Author: julianfoad
Date: Thu Nov 25 18:51:34 2010
New Revision: 1039140

URL: http://svn.apache.org/viewvc?rev=1039140&view=rev
Log:
Fix assertion failures.

* subversion/svn/update-cmd.c
  (print_update_summary): Don't allow a URL to reach svn_dirent_*().

Modified:
    subversion/trunk/subversion/svn/update-cmd.c

Modified: subversion/trunk/subversion/svn/update-cmd.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/update-cmd.c?rev=1039140&r1=1039139&r2=1039140&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/update-cmd.c (original)
+++ subversion/trunk/subversion/svn/update-cmd.c Thu Nov 25 18:51:34 2010
@@ -66,7 +66,8 @@ print_update_summary(apr_array_header_t 
       svn_pool_clear(iter_pool);
 
       /* Convert to an absolute path if it's not already. */
-      if (! svn_dirent_is_absolute(path))
+      /* (It shouldn't be URL, but don't call svn_dirent_* if it is.) */
+      if (! svn_path_is_url(path) && ! svn_dirent_is_absolute(path))
         SVN_ERR(svn_dirent_get_absolute(&path, path, iter_pool));
 
       /* Remove the current working directory prefix from PATH (if