[tracker/tracker-0.12] tracker-extract, pdf: 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] tracker-extract, pdf: O_NOATIME requires owner to match, allow fallback
- Date: Mon, 26 Sep 2011 10:16:49 +0000 (UTC)
commit 671661c9c6be03235e928c31bd6fae62da6fba0e
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Sep 23 11:47:36 2011 +0200
tracker-extract, pdf: O_NOATIME requires owner to match, allow fallback
src/tracker-extract/tracker-extract-pdf.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-pdf.c b/src/tracker-extract/tracker-extract-pdf.c
index e7290b9..a884a10 100644
--- a/src/tracker-extract/tracker-extract-pdf.c
+++ b/src/tracker-extract/tracker-extract-pdf.c
@@ -311,6 +311,9 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
filename = g_file_get_path (file);
fd = g_open (filename, O_RDONLY | O_NOATIME, 0);
+ if (fd == -1 && errno == EPERM) {
+ fd = g_open (filename, O_RDONLY, 0);
+ }
if (fd == -1) {
g_warning ("Could not open pdf file '%s': %s\n",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]