[dovecot-cvs] dovecot/src/plugins/quota quota-fs.c,1.13,1.14
cras at dovecot.org
cras at dovecot.org
Fri Apr 14 14:00:19 EEST 2006
Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv22658/plugins/quota
Modified Files:
quota-fs.c
Log Message:
quotactl() parameters were backwards for BSDs and AIX.
Index: quota-fs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-fs.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- quota-fs.c 14 Apr 2006 10:27:20 -0000 1.13
+++ quota-fs.c 14 Apr 2006 11:00:07 -0000 1.14
@@ -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);
More information about the dovecot-cvs
mailing list