]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fs quota: message/inode values and limits were set wrong, except for Solaris
authorTimo Sirainen <tss@iki.fi>
Thu, 12 Jun 2008 20:13:24 +0000 (23:13 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 12 Jun 2008 20:13:24 +0000 (23:13 +0300)
--HG--
branch : HEAD

src/plugins/quota/quota-fs.c

index b27f51f209f056fe3ad942e2fc0d2b78cb45fa55..94615bb3cd41157126b7823129c0b59ccab535b0 100644 (file)
@@ -455,7 +455,7 @@ fs_quota_get_linux(struct fs_quota_root *root, bool group, bool bytes,
                        *limit_r = dqblk.dqb_bsoftlimit * 1024;
                } else {
                        *value_r = dqblk.dqb_curinodes;
-                       *value_r = dqblk.dqb_isoftlimit;
+                       *limit_r = dqblk.dqb_isoftlimit;
                }
        }
        return 1;
@@ -488,7 +488,7 @@ fs_quota_get_bsdaix(struct fs_quota_root *root, bool group, bool bytes,
                *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * DEV_BSIZE;
        } else {
                *value_r = dqblk.dqb_curinodes;
-               *value_r = dqblk.dqb_isoftlimit;
+               *limit_r = dqblk.dqb_isoftlimit;
        }
        return 1;
 }
@@ -517,7 +517,7 @@ fs_quota_get_hpux(struct fs_quota_root *root, bool bytes,
                *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * DEV_BSIZE;
        } else {
                *value_r = dqblk.dqb_curinodes;
-               *value_r = dqblk.dqb_isoftlimit;
+               *limit_r = dqblk.dqb_isoftlimit;
        }
        return 1;
 }
@@ -546,7 +546,7 @@ fs_quota_get_solaris(struct fs_quota_root *root, bool bytes,
                *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * DEV_BSIZE;
        } else {
                *value_r = dqblk.dqb_curfiles;
-               *value_r = dqblk.dqb_fsoftlimit;
+               *limit_r = dqblk.dqb_fsoftlimit;
        }
        return 1;
 }