From 6e51dcf9c69f4e662d325fbc070fe204a35d167a Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Mon, 4 Jan 2021 16:15:32 +0100 Subject: [PATCH] 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 --- src/csync/vio/csync_vio_local_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csync/vio/csync_vio_local_unix.cpp b/src/csync/vio/csync_vio_local_unix.cpp index 1f41f42f19ab3..b0e5957bb2ef7 100644 --- a/src/csync/vio/csync_vio_local_unix.cpp +++ b/src/csync/vio/csync_vio_local_unix.cpp @@ -124,7 +124,7 @@ std::unique_ptr 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;