owncloud: Add debug messages for _open.

This commit is contained in:
Andreas Schneider 2012-02-22 10:45:53 +01:00
parent 2b15a7b663
commit d5145e1e0a

View file

@ -524,11 +524,18 @@ static csync_vio_method_handle_t *_open(const char *durl,
int put = 0;
(void) mode; /* unused */
DEBUG_WEBDAV(( "############# open called!\n"));
/* uri = ne_path_escape(durl);
* escaping lets the ne_request_create fail, even though its documented
* differently :-(
*/
uri = durl;
uri = ne_path_escape(durl);
if (uri == NULL) {
return NULL;
}
dav_connect( uri );
if (flags & O_WRONLY) {
put = 1;
@ -547,6 +554,7 @@ static csync_vio_method_handle_t *_open(const char *durl,
req = ne_request_create(dav_session.ctx, "GET", uri);
}
DEBUG_WEBDAV(( "open request: %p\n", req ));
return (csync_vio_method_handle_t *) req;
}