# HG changeset patch # User Olaf Wintermann # Date 1443823763 -7200 # Node ID d8b01bed3d83f3c5e9aa9a3d03b625f549fea03d # Parent 0c0ccb7f71ba2ce7c401711334f86dc05e4a5f64 fixed get command and davql exec diff -r 0c0ccb7f71ba -r d8b01bed3d83 dav/main.c --- a/dav/main.c Fri Oct 02 15:13:30 2015 +0200 +++ b/dav/main.c Sat Oct 03 00:09:23 2015 +0200 @@ -419,7 +419,7 @@ free(path); //free(base); - dav_session_destroy(sn); + //dav_session_destroy(sn); return ret; } @@ -616,10 +616,10 @@ int depth = recursive ? -1 : 1; res = dav_query( sn, - "select - from %s with = depth %d where lastmodified > %t", + "select - from %s with depth = %d where lastmodified > %t", path, - t, - depth); + depth, + t); if(!res) { print_resource_error(sn, path); diff -r 0c0ccb7f71ba -r d8b01bed3d83 libidav/davqlexec.c --- a/libidav/davqlexec.c Fri Oct 02 15:13:30 2015 +0200 +++ b/libidav/davqlexec.c Sat Oct 03 00:09:23 2015 +0200 @@ -488,9 +488,9 @@ } result.status = -1; } - } else { - result.status = -1; } + result.result = NULL; + result.status = -1; dav_resource_free_all(selroot); ucx_list_free(stack); break; diff -r 0c0ccb7f71ba -r d8b01bed3d83 libidav/resource.c --- a/libidav/resource.c Fri Oct 02 15:13:30 2015 +0200 +++ b/libidav/resource.c Sat Oct 03 00:09:23 2015 +0200 @@ -639,7 +639,7 @@ CURL *handle = sn->handle; util_set_url(res->session, dav_resource_get_href(res)); - // check encryption + // check encryptions AESDecrypter *dec = NULL; if(DAV_DECRYPT_CONTENT(sn)) { char *keyname = dav_get_property_ns(res, DAV_NS, "crypto-key");