From: Kevin Ottens Date: Mon, 4 Jan 2021 15:15:32 +0000 (+0100) Subject: Provide the path to the current folder to statTypeVirtualFile on unix X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~424^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6e51dcf9c69f4e662d325fbc070fe204a35d167a;p=nextcloud-desktop.git 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 --- diff --git a/src/csync/vio/csync_vio_local_unix.cpp b/src/csync/vio/csync_vio_local_unix.cpp index 1f41f42f1..b0e5957bb 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;