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

OS X bug -- cannot commit when in linked directory

From: Sweetpea <sweetpea_at_tentacle.net>
Date: 2003-01-04 08:51:48 CET

On OS X 10.2 (powerpc-apple-darwin6.3), I am getting the following
behavior:

% cd /incoming/dev/guide/
% svn commit
svn: Invalid lock
svn: lock path is not a directory (/incoming)

vs.
% cd /Volumes/Vlad/Incoming/dev/guide/
% svn commit
%
(works fine; there are no changes)

The problem is that svn_io_check_path is returning svn_node_unknown,
since apr_stat returns APR_LINK, which is currently unsupported (I'm
using rev 4196). This is not a problem on my FreeBSD machine.

I'm not sure of the utility of passing APR_FINFO_LINK to apr_stat, but
removing it fixes things on my machine:

% svn diff io.c
Index: io.c
===================================================================
--- io.c (revision 4196)
+++ io.c (working copy)
@@ -68,7 +68,7 @@
       apr_err return anyway. */
    SVN_ERR (svn_utf_cstring_from_utf8 (&path_native, path, pool));
    apr_err = apr_stat (&finfo, path_native,
- (APR_FINFO_MIN | APR_FINFO_LINK), pool);
+ APR_FINFO_MIN, pool);

    if (apr_err && !APR_STATUS_IS_ENOENT(apr_err))
      return svn_error_createf

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jan 4 14:53:58 2003

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.