Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4192:26e028337e1e HEAD
quotactl() parameters were backwards for BSDs and AIX.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 14 Apr 2006 14:00:07 +0300 |
parents | c75fb8c60672 |
children | a47df521d4fa |
files | src/plugins/quota/quota-fs.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/quota/quota-fs.c Fri Apr 14 13:55:44 2006 +0300 +++ b/src/plugins/quota/quota-fs.c Fri Apr 14 14:00:07 2006 +0300 @@ -183,7 +183,14 @@ return 0; #ifdef HAVE_QUOTACTL - if (quotactl(QCMD(Q_GETQUOTA, USRQUOTA), root->mount->device_path, + if (quotactl( +#ifdef HAVE_SYS_QUOTA_H + /* Linux */ + QCMD(Q_GETQUOTA, USRQUOTA), root->mount->device_path, +#else + /* BSD, AIX */ + root->mount->device_path, QCMD(Q_GETQUOTA, USRQUOTA), +#endif root->uid, (void *)&dqblk) < 0) { i_error("quotactl(Q_GETQUOTA, %s) failed: %m", root->mount->device_path);