From: Timo Sirainen Date: Thu, 12 Jun 2008 20:13:24 +0000 (+0300) Subject: fs quota: message/inode values and limits were set wrong, except for Solaris X-Git-Tag: 1.2.alpha1~316 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f815778d25fde0c22f090df56341eb7ba1ff1a35;p=thirdparty%2Fdovecot%2Fcore.git fs quota: message/inode values and limits were set wrong, except for Solaris --HG-- branch : HEAD --- diff --git a/src/plugins/quota/quota-fs.c b/src/plugins/quota/quota-fs.c index b27f51f209..94615bb3cd 100644 --- a/src/plugins/quota/quota-fs.c +++ b/src/plugins/quota/quota-fs.c @@ -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; }