[dovecot-cvs] dovecot/src/plugins/quota quota-fs.c,1.21,1.22

cras at dovecot.org cras at dovecot.org
Mon Aug 7 01:22:25 EEST 2006


Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv1969

Modified Files:
	quota-fs.c 
Log Message:
Default _LINUX_QUOTA_VERSION to 1 instead of 2, since older Linux v1
sys/quota.h didn't define it at all.



Index: quota-fs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-fs.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- quota-fs.c	2 Aug 2006 22:39:50 -0000	1.21
+++ quota-fs.c	6 Aug 2006 22:22:22 -0000	1.22
@@ -24,10 +24,10 @@
 #  define DEV_BSIZE 512
 #endif
 
-/* This most likely should have been defined by above headers already, but
-   in case some OS has less than perfect emulation lets try to handle it. */
+/* Older sys/quota.h doesn't define _LINUX_QUOTA_VERSION at all, which means
+   it supports only v1 quota */
 #ifndef _LINUX_QUOTA_VERSION
-#  define _LINUX_QUOTA_VERSION 2
+#  define _LINUX_QUOTA_VERSION 1
 #endif
 
 struct fs_quota_mountpoint {



More information about the dovecot-cvs mailing list