dav/main.c

changeset 136
59058927b885
parent 135
664aeaec8d25
child 138
6a3248e22d58
--- a/dav/main.c	Wed Jul 08 17:31:26 2015 +0200
+++ b/dav/main.c	Thu Jul 09 15:00:16 2015 +0200
@@ -364,7 +364,7 @@
     }
     
     char *update = cmd_getoption(a, "update");
-    time_t t = 1;
+    time_t t = -1;
     if(update) {
         t = util_parse_lastmodified(update);
     }
@@ -373,15 +373,12 @@
     int ret = -1;
     DavResource *ls;
     while(ret != 0) {
-        /*
         ls = dav_query(
                 sn,
                 "select `idav:crypto-name`,`idav:crypto-key` from %s with depth = %d where lastmodified > %t",
                 path,
                 depth,
                 t);
-        */
-        ls = dav_query(sn, "select * from %s", path);
         
         if(!ls) {
             if(sn->error == DAV_UNAUTHORIZED) {

mercurial