subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1604761 - /subversion/trunk/subversion/libsvn_subr/io.c
Date Mon, 23 Jun 2014 11:47:22 GMT
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)



Mime
View raw message