dav/scfg.c

changeset 630
046b869a1c49
parent 623
7870656d302d
child 642
4e23087d3d90
equal deleted inserted replaced
629:bc2cdbf5e68f 630:046b869a1c49
391 | SYNC_CMD_ARCHIVE | SYNC_CMD_RESTORE; 391 | SYNC_CMD_ARCHIVE | SYNC_CMD_RESTORE;
392 bool backuppull = false; 392 bool backuppull = false;
393 bool lockpull = false; 393 bool lockpull = false;
394 bool lockpush = false; 394 bool lockpush = false;
395 bool hashing = false; 395 bool hashing = false;
396 bool store_hash = false;
396 //bool detect_copy = false; 397 //bool detect_copy = false;
397 time_t lock_timeout = 0; 398 time_t lock_timeout = 0;
398 uint32_t metadata = 0; 399 uint32_t metadata = 0;
399 uint32_t symlink = 0; 400 uint32_t symlink = 0;
400 401
488 print_warning(node->line, "integer value " 489 print_warning(node->line, "integer value "
489 "expected in <lock-timeout> element\n"); 490 "expected in <lock-timeout> element\n");
490 } 491 }
491 } else if(xstreq(node->name, "hashing")) { 492 } else if(xstreq(node->name, "hashing")) {
492 hashing = util_getboolean(value); 493 hashing = util_getboolean(value);
494 store_hash = hashing; // TODO: extra config for this?
493 } else if(xstreq(node->name, "symlinks")) { 495 } else if(xstreq(node->name, "symlinks")) {
494 uint32_t symlinkconfig = 0; 496 uint32_t symlinkconfig = 0;
495 const char *delims = " ,\r\n"; 497 const char *delims = " ,\r\n";
496 char *cmdstr = strdup(value); 498 char *cmdstr = strdup(value);
497 char *s = strtok(cmdstr, delims); 499 char *s = strtok(cmdstr, delims);
548 dir->allow_cmd = allow_cmd; 550 dir->allow_cmd = allow_cmd;
549 dir->backuppull = backuppull; 551 dir->backuppull = backuppull;
550 dir->lockpull = lockpull; 552 dir->lockpull = lockpull;
551 dir->lockpush = lockpush; 553 dir->lockpush = lockpush;
552 dir->hashing = hashing; 554 dir->hashing = hashing;
555 dir->store_hash = store_hash;
553 dir->lock_timeout = lock_timeout; 556 dir->lock_timeout = lock_timeout;
554 dir->metadata = metadata; 557 dir->metadata = metadata;
555 dir->splitconfig = splitconfig; 558 dir->splitconfig = splitconfig;
556 dir->symlink = symlink; 559 dir->symlink = symlink;
557 if((metadata & FINFO_MODE) == FINFO_MODE) { 560 if((metadata & FINFO_MODE) == FINFO_MODE) {

mercurial