+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.
+
2008-01-22 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #450840
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);
/* 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"),
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);
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);
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"),
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"),