csync test: fix warning
sync engine: try to respect permission

This is still Work in progress
permission: read them from the tree