[dovecot-cvs] dovecot/src/plugins/quota quota-fs.c,1.10,1.11

cras at dovecot.org cras at dovecot.org
Sun Apr 2 20:42:32 EEST 2006


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

Modified Files:
	quota-fs.c 
Log Message:
stat() the mount point paths instead of the devices to find out where the
mount point is.



Index: quota-fs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-fs.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- quota-fs.c	6 Mar 2006 15:48:33 -0000	1.10
+++ quota-fs.c	2 Apr 2006 17:42:30 -0000	1.11
@@ -139,7 +139,7 @@
 		    strcmp(ent.mnt_fstype, MNTTYPE_IGNORE) == 0)
 			continue;
 
-		if (stat(ent.mnt_special, &st2) == 0 &&
+		if (stat(ent.mnt_mountp, &st2) == 0 &&
 		    CMP_DEV_T(st.st_dev, st2.st_dev)) {
 			device_path = ent.mnt_special;
 			mount_path = ent.mnt_mountp;
@@ -158,7 +158,7 @@
 		    strcmp(ent->mnt_type, MNTTYPE_IGNORE) == 0)
 			continue;
 
-		if (stat(ent->mnt_fsname, &st2) == 0 &&
+		if (stat(ent->mnt_dir, &st2) == 0 &&
 		    CMP_DEV_T(st.st_dev, st2.st_dev)) {
 			device_path = ent->mnt_fsname;
 			mount_path = ent->mnt_dir;



More information about the dovecot-cvs mailing list