[tracker] tracker-extract, text: O_NOATIME requires owner to match, allow fallback
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract, text: O_NOATIME requires owner to match, allow fallback
- Date: Fri, 23 Sep 2011 09:54:47 +0000 (UTC)
commit 37775b82f475c567e51a62863f27d63b232aa8b3
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Sep 23 11:49:33 2011 +0200
tracker-extract, text: O_NOATIME requires owner to match, allow fallback
src/tracker-extract/tracker-extract-text.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-text.c b/src/tracker-extract/tracker-extract-text.c
index 5cc1345..17f73dd 100644
--- a/src/tracker-extract/tracker-extract-text.c
+++ b/src/tracker-extract/tracker-extract-text.c
@@ -62,6 +62,9 @@ get_file_content (GFile *file,
path = g_file_get_path (file);
fd = g_open (path, O_RDONLY | O_NOATIME, 0);
+ if (fd == -1 && errno == EPERM) {
+ fd = g_open (path, O_RDONLY, 0);
+ }
if (fd == -1) {
g_message ("Could not open file '%s': %s",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]