Skip to content

Commit

Permalink
Provide the path to the current folder to statTypeVirtualFile on unix
Browse files Browse the repository at this point in the history
Otherwise backends can't get to the actual file which will be needed for
the XAttr backend.

Signed-off-by: Kevin Ottens <[email protected]>
  • Loading branch information
Kevin Ottens committed Jan 14, 2021
1 parent a89b483 commit 6e51dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/csync/vio/csync_vio_local_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6e51dcf

Please sign in to comment.