subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevek...@apache.org
Subject svn commit: r1833621 - /subversion/trunk/subversion/libsvn_subr/io.c
Date Fri, 15 Jun 2018 19:23:31 GMT
Author: steveking
Date: Fri Jun 15 19:23:31 2018
New Revision: 1833621

URL: http://svn.apache.org/viewvc?rev=1833621&view=rev
Log:
Since on Windows Subversion does not handle symlinks, never check for reparse points.

* subversion/libsvn_subr/io.c
  (io_check_path): ignore the 'resolve_symlinks' flag on Windows via #ifdef

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=1833621&r1=1833620&r2=1833621&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/io.c (original)
+++ subversion/trunk/subversion/libsvn_subr/io.c Fri Jun 15 19:23:31 2018
@@ -342,8 +342,13 @@ io_check_path(const char *path,
   /* Not using svn_io_stat() here because we want to check the
      apr_err return explicitly. */
   SVN_ERR(cstring_from_utf8(&path_apr, path, pool));
-
+#ifdef WIN32
+  /* on Windows, svn does not handle reparse points or hard links.
+     So ignore the 'resolve_symlinks' flag. */
+  flags = APR_FINFO_MIN;
+#else
   flags = resolve_symlinks ? APR_FINFO_MIN : (APR_FINFO_MIN | APR_FINFO_LINK);
+#endif
   apr_err = apr_stat(&finfo, path_apr, flags, pool);
 
   if (APR_STATUS_IS_ENOENT(apr_err))



Mime
View raw message