git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@641
959494ce-11ee-0310-bf91-
de5d638817bd
char *path;
node = shareroot->child;
char *path;
node = shareroot->child;
+ for(node = shareroot->child; node != NULL; node = nextscnode(node))
- if(node->child != NULL)
- {
- node = node->child;
+ if(node->f.b.type != FILE_REG)
if(!node->f.b.hastth)
{
if((hc = findhashcache(node->dev, node->inode)) != NULL)
if(!node->f.b.hastth)
{
if((hc = findhashcache(node->dev, node->inode)) != NULL)
{
flog(LOG_WARNING, "could not hash %s, unsharing it", path);
freecache(node);
{
flog(LOG_WARNING, "could not hash %s, unsharing it", path);
freecache(node);
+ free(path);
+ flog(LOG_INFO, "sharing %lli bytes", sharesize);
+ continue;
}
free(path);
return;
}
}
}
free(path);
return;
}
}
- while(node->next == NULL)
- {
- if((node = node->parent) == shareroot)
- break;
- }
- if(node == shareroot)
- break;
- node = node->next;