evolution-data-server r8618 - trunk/camel/providers/local
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r8618 - trunk/camel/providers/local
- Date: Fri, 4 Apr 2008 17:55:00 +0100 (BST)
Author: mcrha
Date: Fri Apr 4 17:54:59 2008
New Revision: 8618
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8618&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:
trunk/camel/providers/local/ChangeLog
trunk/camel/providers/local/camel-maildir-summary.c
trunk/camel/providers/local/camel-mbox-folder.c
trunk/camel/providers/local/camel-mh-summary.c
trunk/camel/providers/local/camel-spool-folder.c
trunk/camel/providers/local/camel-spool-summary.c
Modified: trunk/camel/providers/local/camel-maildir-summary.c
==============================================================================
--- trunk/camel/providers/local/camel-maildir-summary.c (original)
+++ trunk/camel/providers/local/camel-maildir-summary.c Fri Apr 4 17:54:59 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: trunk/camel/providers/local/camel-mbox-folder.c
==============================================================================
--- trunk/camel/providers/local/camel-mbox-folder.c (original)
+++ trunk/camel/providers/local/camel-mbox-folder.c Fri Apr 4 17:54:59 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: trunk/camel/providers/local/camel-mh-summary.c
==============================================================================
--- trunk/camel/providers/local/camel-mh-summary.c (original)
+++ trunk/camel/providers/local/camel-mh-summary.c Fri Apr 4 17:54:59 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: trunk/camel/providers/local/camel-spool-folder.c
==============================================================================
--- trunk/camel/providers/local/camel-spool-folder.c (original)
+++ trunk/camel/providers/local/camel-spool-folder.c Fri Apr 4 17:54:59 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: trunk/camel/providers/local/camel-spool-summary.c
==============================================================================
--- trunk/camel/providers/local/camel-spool-summary.c (original)
+++ trunk/camel/providers/local/camel-spool-summary.c Fri Apr 4 17:54:59 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]