Published 2003-04-16 21:56:00
-- 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;
}