[tracker] libtracker-db: O_LARGEFILE must be added to the g_open of the journal
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-db: O_LARGEFILE must be added to the g_open of the journal
- Date: Sun, 18 Apr 2010 11:33:57 +0000 (UTC)
commit d11e216ff221500390e7205f2e180bb6d229ee20
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]