summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/statvfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/statvfs.c b/source3/smbd/statvfs.c
index f3435958c5..85a83c2df8 100644
--- a/source3/smbd/statvfs.c
+++ b/source3/smbd/statvfs.c
@@ -82,7 +82,7 @@ static int bsd_statvfs(const char *path, vfs_statvfs_struct *statbuf)
int ret;
ret = statfs(path, &sbuf);
- if (ret != 0) {
+ if (ret == 0) {
statbuf->OptimalTransferSize = sbuf.f_iosize;
statbuf->BlockSize = sbuf.f_bsize;
statbuf->TotalBlocks = sbuf.f_blocks;