[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c, 1.56, 1.57

cras at dovecot.org cras at dovecot.org
Mon Jul 12 00:09:33 EEST 2004


Update of /home/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv9451/lib-storage/index

Modified Files:
	index-storage.c 
Log Message:
Use CMP_DEV_T() macro to compare struct stat.st_dev



Index: index-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- index-storage.c	8 Jul 2004 20:26:16 -0000	1.56
+++ index-storage.c	11 Jul 2004 21:09:31 -0000	1.57
@@ -94,7 +94,7 @@
 		rec = *list;
 
 		if ((index_dir != NULL && st.st_ino == rec->index_dir_ino &&
-		     st.st_dev == rec->index_dir_dev) ||
+		     CMP_DEV_T(st.st_dev, rec->index_dir_dev)) ||
 		    (index_dir == NULL && st.st_ino == 0 &&
 		     strcmp(mailbox_path, rec->mailbox_path) == 0)) {
 			rec->refcount++;



More information about the dovecot-cvs mailing list