[tracker/tracker-0.12: 103/202] tracker-extract, text: O_NOATIME requires owner to match, allow fallback
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.12: 103/202] tracker-extract, text: O_NOATIME requires owner to match, allow fallback
- Date: Thu, 6 Oct 2011 17:57:07 +0000 (UTC)
commit e359a5990b37732386396b9edc270ac7209fdd83
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]