From 143b711c2350a853a04eb3e8c74cdb0aced8b199 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Fri, 29 Jun 2012 17:01:47 +0200 Subject: s3: fix the logic in bsd_statvfs --- source3/smbd/statvfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/statvfs.c') 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; -- cgit