dav list indicates locks

Tue, 15 Mar 2016 11:21:30 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 15 Mar 2016 11:21:30 +0100
changeset 211
3d12817414e9
parent 210
1d19e0ff18d9
child 212
01e80c7cfe96

dav list indicates locks

dav/main.c file | annotate | diff | comparison | revisions
dav/version.h file | annotate | diff | comparison | revisions
--- a/dav/main.c	Tue Mar 15 11:07:31 2016 +0100
+++ b/dav/main.c	Tue Mar 15 11:21:30 2016 +0100
@@ -359,7 +359,7 @@
     while(ret != 0) {
         ls = dav_query(
                 sn,
-                "select `idav:crypto-name`,`idav:crypto-key` from %s with depth = %d where lastmodified > %t order by iscollection desc, name",
+                "select `idav:crypto-name`,`idav:crypto-key`,D:lockdiscovery from %s with depth = %d where lastmodified > %t order by iscollection desc, name",
                 path,
                 depth,
                 t);
@@ -497,7 +497,7 @@
     
     char flags[16];
     memset(flags, '-', 15);
-    flags[2] = '\0';
+    flags[3] = '\0';
     
     int type_width = 0;
     char *type = res->contenttype;
@@ -513,6 +513,9 @@
     if(keyprop) {
         flags[1] = 'c';
     }
+    if(dav_get_property(res, "D:lockdiscovery")) {
+        flags[2] = 'l';
+    }
     
     if(cmd_getoption(a, "type")) {
         type_width = 20;
--- a/dav/version.h	Tue Mar 15 11:07:31 2016 +0100
+++ b/dav/version.h	Tue Mar 15 11:21:30 2016 +0100
@@ -29,7 +29,7 @@
 #ifndef VERSION_H
 #define VERSION_H
 
-#define DAV_VERSION "0.9.5"
+#define DAV_VERSION "0.9.6"
 
 #endif /* VERSION_H */
 

mercurial