[tracker/tracker-0.12: 104/202] tracker-extract, tiff: O_NOATIME requires owner to match, allow fallback



commit 634a02e12ee3522d9553aa391c8e6b77ff6266ba
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Sep 23 11:50:02 2011 +0200

    tracker-extract, tiff: O_NOATIME requires owner to match, allow fallback

 src/tracker-extract/tracker-extract-tiff.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-tiff.c b/src/tracker-extract/tracker-extract-tiff.c
index e28a74d..ca55ce2 100644
--- a/src/tracker-extract/tracker-extract-tiff.c
+++ b/src/tracker-extract/tracker-extract-tiff.c
@@ -292,6 +292,9 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
 	graph = tracker_extract_info_get_graph (info);
 
 	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 tiff file '%s': %s\n",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]