Provide the path to the current folder to statTypeVirtualFile on unix
authorKevin Ottens <kevin.ottens@nextcloud.com>
Mon, 4 Jan 2021 15:15:32 +0000 (16:15 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Thu, 14 Jan 2021 11:57:03 +0000 (12:57 +0100)
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>
src/csync/vio/csync_vio_local_unix.cpp

index 1f41f42f19ab38c5096a88a114f3e1f151cebaf5..b0e5957bb2ef741dd8b0d75654478a5ecc192c44 100644 (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;