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

davfs patch to work with subversion.

From: Alan Knowles <alan_at_akbkhome.com>
Date: 2003-04-16 11:56:40 CEST

Below is a short patch to davfs2-0.2.1 which disables locking calls.
I've cc'd davfs's author (hopefully the right address) - as it would be
nice to get some kind of ,mount option for this, rather than this cheesy
  hack.

as somebody mentioned on irc, the other alternative for this is using
lufs + gnome-vfs.

--- davfs2-0.2.1/src/webdav.c 2002-10-14 08:34:02.000000000 +0800
+++ webdav.c 2003-04-16 17:41:17.000000000 +0800
@@ -604,7 +604,7 @@
  int dav_lock(const char *name) {
      char *uri = resolve_path(path, name, 0);
      struct ne_lock *lock;
-
+ return NE_OK;
      /* Let's lock the resource */
      lock = ne_lock_create();
      lock->depth = NE_DEPTH_ZERO;
@@ -652,9 +652,9 @@

      /* Lst's get the lock */
      server.path = (char *)uri; /* Change path */
- lock = ne_lockstore_findbyuri(lock_store, &server);
+ /* lock = ne_lockstore_findbyuri(lock_store, &server); */
      NE_FREE(uri);
-
+ /*
      if (!lock) {
         DBG0("Shuld be locked, before open\n");
         return dav_set_errno();
@@ -667,7 +667,7 @@

      ne_lockstore_remove(lock_store, lock);
      ne_lock_destroy(lock);
-
+ */
      return ret;
  }

-- 
Can you help out?
Need Consulting Services or Know of a Job?
http://www.akbkhome.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 16 18:14:17 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.