summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/modules/vfs_default.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 17d0dfabaf..9c5b644a50 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -93,10 +93,10 @@ static int vfswrap_statvfs(struct vfs_handle_struct *handle, const char *path,
static uint32_t vfswrap_fs_capabilities(struct vfs_handle_struct *handle)
{
#if defined(DARWINOS)
- struct statfs sbuf;
- ZERO_STRUCT(sbuf);
- sys_statvfs(handle->conn->connectpath, &sbuf);
- return sbuf.FsCapabilities;
+ struct vfs_statvfs_struct statbuf;
+ ZERO_STRUCT(statbuf);
+ sys_statvfs(handle->conn->connectpath, &statbuf);
+ return statbuf.FsCapabilities;
#endif
return FILE_CASE_SENSITIVE_SEARCH | FILE_CASE_PRESERVED_NAMES;
}