Provide the path to the current folder to statTypeVirtualFile on unix

Otherwise backends can't get to the actual file which will be needed for
the XAttr backend.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2021-01-04 16:15:32 +01:00
parent a89b483773
commit 6e51dcf9c6
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -124,7 +124,7 @@ std::unique_ptr<csync_file_stat_t> csync_vio_local_readdir(csync_vio_handle_t *h
if (vfs) {
// Directly modifies file_stat->type.
// We can ignore the return value since we're done here anyway.
vfs->statTypeVirtualFile(file_stat.get(), nullptr);
vfs->statTypeVirtualFile(file_stat.get(), &handle->path);
}
return file_stat;