s3: fix the logic in bsd_statvfs
authorBjörn Jacke <bj@sernet.de>
Fri, 29 Jun 2012 15:01:47 +0000 (17:01 +0200)
committerBjoern Jacke <bj@sernet.de>
Fri, 29 Jun 2012 15:19:21 +0000 (17:19 +0200)
source3/smbd/statvfs.c

index f3435958c5f10c38f99a8c5191685d0d672ee03b..85a83c2df86ab820630357f1c43dea33e88534cf 100644 (file)
@@ -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;