[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-util.c, 1.21, 1.22

tss at dovecot.org tss at dovecot.org
Sun Mar 25 21:24:02 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv5579/lib-storage/index/maildir

Modified Files:
	maildir-util.c 
Log Message:
File's group could have been wrong with shared mailboxes



Index: maildir-util.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-util.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- maildir-util.c	18 Jan 2007 17:20:50 -0000	1.21
+++ maildir-util.c	25 Mar 2007 18:24:00 -0000	1.22
@@ -132,8 +132,7 @@
 			mail_storage_set_critical(STORAGE(mbox->storage),
 						  "open(%s) failed: %m", path);
 		}
-	} else if (st.st_gid != mbox->mail_create_gid &&
-		   mbox->mail_create_gid != (gid_t)-1) {
+	} else if (mbox->mail_create_gid != (gid_t)-1) {
 		if (fchown(fd, (uid_t)-1, mbox->mail_create_gid) < 0) {
 			mail_storage_set_critical(STORAGE(mbox->storage),
 				"fchown(%s) failed: %m", path);



More information about the dovecot-cvs mailing list