[tracker/rss-enclosures] libtracker-db: O_LARGEFILE must be added to the g_open of the journal
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] libtracker-db: O_LARGEFILE must be added to the g_open of the journal
- Date: Mon, 3 May 2010 00:40:23 +0000 (UTC)
commit e3f35249f32679cf28f789105d17ce1fba2bff46
Author: Philip Van Hoof <philip codeminded be>
Date: Sun Apr 18 13:32:53 2010 +0200
libtracker-db: O_LARGEFILE must be added to the g_open of the journal
src/libtracker-db/tracker-db-journal.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-journal.c b/src/libtracker-db/tracker-db-journal.c
index 9b2e280..a3e69e4 100644
--- a/src/libtracker-db/tracker-db-journal.c
+++ b/src/libtracker-db/tracker-db-journal.c
@@ -34,6 +34,10 @@
#include <glib/gstdio.h>
+#ifndef O_LARGEFILE
+# define O_LARGEFILE 0
+#endif
+
#include <libtracker-common/tracker-crc32.h>
#include "tracker-db-journal.h"
@@ -242,7 +246,7 @@ tracker_db_journal_init (const gchar *filename, gboolean truncate)
g_free (directory);
mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP;
- flags = O_WRONLY | O_APPEND | O_CREAT;
+ flags = O_WRONLY | O_APPEND | O_CREAT | O_LARGEFILE;
if (truncate) {
/* existing journal contents are invalid: reindex where journal
* does not even contain a single valid entry
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]