evolution-data-server r8619 - branches/gnome-2-22/camel/providers/local



Author: mcrha
Date: Fri Apr  4 17:55:28 2008
New Revision: 8619
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8619&view=rev

Log:
2008-04-04  Milan Crha  <mcrha redhat com>

	** Fix for bug #522433

	* camel-spool-summary.c: (spool_summary_sync_full):
	* camel-mh-summary.c: (mh_summary_next_uid_string),
	(camel_mh_summary_add):
	* camel-maildir-summary.c: (camel_maildir_summary_add):
	* camel-mbox-folder.c: (mbox_lock):
	* camel-spool-folder.c: (spool_lock): Open files with O_LARGEFILE flag.



Modified:
   branches/gnome-2-22/camel/providers/local/ChangeLog
   branches/gnome-2-22/camel/providers/local/camel-maildir-summary.c
   branches/gnome-2-22/camel/providers/local/camel-mbox-folder.c
   branches/gnome-2-22/camel/providers/local/camel-mh-summary.c
   branches/gnome-2-22/camel/providers/local/camel-spool-folder.c
   branches/gnome-2-22/camel/providers/local/camel-spool-summary.c

Modified: branches/gnome-2-22/camel/providers/local/camel-maildir-summary.c
==============================================================================
--- branches/gnome-2-22/camel/providers/local/camel-maildir-summary.c	(original)
+++ branches/gnome-2-22/camel/providers/local/camel-maildir-summary.c	Fri Apr  4 17:55:28 2008
@@ -478,7 +478,7 @@
 
 	d(printf("summarising: %s\n", name));
 
-	fd = open(filename, O_RDONLY);
+	fd = open(filename, O_RDONLY|O_LARGEFILE);
 	if (fd == -1) {
 		g_warning ("Cannot summarise/index: %s: %s", filename, strerror (errno));
 		g_free(filename);

Modified: branches/gnome-2-22/camel/providers/local/camel-mbox-folder.c
==============================================================================
--- branches/gnome-2-22/camel/providers/local/camel-mbox-folder.c	(original)
+++ branches/gnome-2-22/camel/providers/local/camel-mbox-folder.c	Fri Apr  4 17:55:28 2008
@@ -150,7 +150,7 @@
 	/* make sure we have matching unlocks for locks, camel-local-folder class should enforce this */
 	g_assert(mf->lockfd == -1);
 
-	mf->lockfd = open(lf->folder_path, O_RDWR, 0);
+	mf->lockfd = open(lf->folder_path, O_RDWR|O_LARGEFILE, 0);
 	if (mf->lockfd == -1) {
 		camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
 				      _("Cannot create folder lock on %s: %s"),

Modified: branches/gnome-2-22/camel/providers/local/camel-mh-summary.c
==============================================================================
--- branches/gnome-2-22/camel/providers/local/camel-mh-summary.c	(original)
+++ branches/gnome-2-22/camel/providers/local/camel-mh-summary.c	Fri Apr  4 17:55:28 2008
@@ -152,7 +152,7 @@
 			uid = camel_folder_summary_next_uid(s);
 			name = g_strdup_printf("%s/%u", cls->folder_path, uid);
 			/* O_EXCL isn't guaranteed, sigh.  Oh well, bad luck, mh has problems anyway */
-			fd = open(name, O_WRONLY|O_CREAT|O_EXCL, 0600);
+			fd = open(name, O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0600);
 			g_free(name);
 		} while (fd == -1 && errno == EEXIST);
 
@@ -174,7 +174,7 @@
 
 	d(printf("summarising: %s\n", name));
 
-	fd = open(filename, O_RDONLY);
+	fd = open(filename, O_RDONLY|O_LARGEFILE);
 	if (fd == -1) {
 		g_warning ("Cannot summarise/index: %s: %s", filename, strerror (errno));
 		g_free(filename);

Modified: branches/gnome-2-22/camel/providers/local/camel-spool-folder.c
==============================================================================
--- branches/gnome-2-22/camel/providers/local/camel-spool-folder.c	(original)
+++ branches/gnome-2-22/camel/providers/local/camel-spool-folder.c	Fri Apr  4 17:55:28 2008
@@ -144,7 +144,7 @@
 	CamelMboxFolder *mf = (CamelMboxFolder *)lf;
 	CamelSpoolFolder *sf = (CamelSpoolFolder *)lf;
 
-	mf->lockfd = open(lf->folder_path, O_RDWR, 0);
+	mf->lockfd = open(lf->folder_path, O_RDWR|O_LARGEFILE, 0);
 	if (mf->lockfd == -1) {
 		camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
 				      _("Cannot create folder lock on %s: %s"),

Modified: branches/gnome-2-22/camel/providers/local/camel-spool-summary.c
==============================================================================
--- branches/gnome-2-22/camel/providers/local/camel-spool-summary.c	(original)
+++ branches/gnome-2-22/camel/providers/local/camel-spool-summary.c	Fri Apr  4 17:55:28 2008
@@ -139,7 +139,7 @@
 
 	camel_operation_start(NULL, _("Storing folder"));
 
-	fd = open(((CamelLocalSummary *)cls)->folder_path, O_RDWR);
+	fd = open(((CamelLocalSummary *)cls)->folder_path, O_RDWR|O_LARGEFILE);
 	if (fd == -1) {
 		camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
 				      _("Could not open file: %s: %s"),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]