dav/scfg.c

changeset 549
af91d3c96994
parent 539
8deb52292c99
child 576
62cc92445234
--- a/dav/scfg.c	Thu Mar 28 20:30:52 2019 +0100
+++ b/dav/scfg.c	Sat Apr 06 14:25:07 2019 +0200
@@ -392,6 +392,8 @@
     bool backuppull = false;
     bool lockpull = false;
     bool lockpush = false;
+    bool hashing = false;
+    bool detect_copy = false;
     time_t lock_timeout = 0;
     uint32_t metadata = 0;
     
@@ -485,6 +487,8 @@
                     print_warning(node->line, "integer value "
                             "expected in <lock-timeout> element\n");
                 }
+            } else if(xstreq(node->name, "hashing")) {
+                hashing = util_getboolean(value);
             } else {
                 print_error(node->line,
                         "unknown directory config element: %s\n", node->name);
@@ -527,6 +531,7 @@
     dir->backuppull = backuppull;
     dir->lockpull = lockpull;
     dir->lockpush = lockpush;
+    dir->hashing = hashing;
     dir->lock_timeout = lock_timeout;
     dir->metadata = metadata;
     dir->splitconfig = splitconfig;

mercurial