summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorBrad Smith <brad@comstyle.com>2012-02-25 09:28:43 +0100
committerVolker Lendecke <vl@samba.org>2012-02-25 09:42:24 +0100
commit71a6d334321d42fd0f02646d1649405ccf197c00 (patch)
treef05a45ad836c4f045e89fcb2ad457d21c392562d /source3/modules
parent0fbefbcb54eb0610d4cbd3579914f884d0ae6fa5 (diff)
downloadsamba-71a6d334321d42fd0f02646d1649405ccf197c00.tar.gz
samba-71a6d334321d42fd0f02646d1649405ccf197c00.tar.bz2
samba-71a6d334321d42fd0f02646d1649405ccf197c00.zip
s3: Fix bug 8777, sys_statvfs() wrapper support for OpenBSD/FreeBSD/DragonFly
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_default.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index f556f1c496..d81adadfec 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -111,7 +111,7 @@ static uint32_t vfswrap_fs_capabilities(struct vfs_handle_struct *handle,
NTSTATUS status;
int ret = -1;
-#if defined(DARWINOS)
+#if defined(DARWINOS) || (defined(BSD) && defined(MNT_RDONLY))
struct vfs_statvfs_struct statbuf;
ZERO_STRUCT(statbuf);
sys_statvfs(conn->connectpath, &statbuf);