You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2014/06/23 13:47:22 UTC

svn commit: r1604761 - /subversion/trunk/subversion/libsvn_subr/io.c

Author: rhuijben
Date: Mon Jun 23 11:47:21 2014
New Revision: 1604761

URL: http://svn.apache.org/r1604761
Log:
Properly handle "" directory in svn_io_start_cmd3(). Many callers already
expect the broken current handling for these paths, but at least new callers
can just pass canonical paths now.

* subversion/libsvn_subr/io.c
  (svn_io_start_cmd3): Handle "" directory.

Modified:
    subversion/trunk/subversion/libsvn_subr/io.c

Modified: subversion/trunk/subversion/libsvn_subr/io.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/io.c?rev=1604761&r1=1604760&r2=1604761&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/io.c (original)
+++ subversion/trunk/subversion/libsvn_subr/io.c Mon Jun 23 11:47:21 2014
@@ -2839,6 +2839,10 @@ svn_io_start_cmd3(apr_proc_t *cmd_proc,
     {
       const char *path_apr;
 
+      /* APR doesn't like our canonical path format for current directory */
+      if (path[0] == '\0')
+        path = ".";
+
       SVN_ERR(cstring_from_utf8(&path_apr, path, pool));
       apr_err = apr_procattr_dir_set(cmdproc_attr, path_apr);
       if (apr_err)