summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-06-29 17:01:47 +0200
committerBjoern Jacke <bj@sernet.de>2012-06-29 17:19:21 +0200
commit143b711c2350a853a04eb3e8c74cdb0aced8b199 (patch)
tree7c5a71b96e29788c223270d16775ca07f24a8e7e
parentec737d96048f3cd34cb2de7f939d93586c4a930f (diff)
downloadsamba-143b711c2350a853a04eb3e8c74cdb0aced8b199.tar.gz
samba-143b711c2350a853a04eb3e8c74cdb0aced8b199.tar.bz2
samba-143b711c2350a853a04eb3e8c74cdb0aced8b199.zip
s3: fix the logic in bsd_statvfs
-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;